mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Merge branch 'master' of https://github.com/snipe/snipe-it
This commit is contained in:
commit
ce16eae508
|
@ -208,8 +208,7 @@ class LdapSync extends Command
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$user->notes = 'Imported from LDAP';
|
|
||||||
$user->ldap_import = 1;
|
$user->ldap_import = 1;
|
||||||
|
|
||||||
$errors = '';
|
$errors = '';
|
||||||
|
|
|
@ -49,6 +49,9 @@ class ProfileController extends Controller
|
||||||
$user->last_name = $request->input('last_name');
|
$user->last_name = $request->input('last_name');
|
||||||
$user->website = $request->input('website');
|
$user->website = $request->input('website');
|
||||||
$user->gravatar = $request->input('gravatar');
|
$user->gravatar = $request->input('gravatar');
|
||||||
|
$user->phone = $request->input('phone');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (!config('app.lock_passwords')) {
|
if (!config('app.lock_passwords')) {
|
||||||
$user->locale = $request->input('locale', 'en');
|
$user->locale = $request->input('locale', 'en');
|
||||||
|
|
|
@ -391,7 +391,7 @@ class AssetPresenter extends Presenter
|
||||||
public function eol_date()
|
public function eol_date()
|
||||||
{
|
{
|
||||||
|
|
||||||
if (( $this->purchase_date ) && ( $this->model )) {
|
if (( $this->purchase_date ) && ( $this->model ) && ($this->model->model->eol) ) {
|
||||||
$date = date_create($this->purchase_date);
|
$date = date_create($this->purchase_date);
|
||||||
date_add($date, date_interval_create_from_date_string($this->model->model->eol . ' months'));
|
date_add($date, date_interval_create_from_date_string($this->model->model->eol . ' months'));
|
||||||
return date_format($date, 'Y-m-d');
|
return date_format($date, 'Y-m-d');
|
||||||
|
|
|
@ -43,5 +43,8 @@ class DatabaseSeeder extends Seeder
|
||||||
\Log::info($output);
|
\Log::info($output);
|
||||||
|
|
||||||
Model::reguard();
|
Model::reguard();
|
||||||
|
|
||||||
|
DB::table('imports')->truncate();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,6 +58,15 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Phone -->
|
||||||
|
<div class="form-group {{ $errors->has('phone') ? 'has-error' : '' }}">
|
||||||
|
<label class="col-md-3 control-label" for="phone">{{ trans('admin/users/table.phone') }}</label>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<input class="form-control" type="text" name="phone" id="phone" value="{{ Input::old('phone', $user->phone) }}" />
|
||||||
|
{!! $errors->first('phone', '<span class="alert-msg">:message</span>') !!}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Website URL -->
|
<!-- Website URL -->
|
||||||
|
|
Loading…
Reference in a new issue