mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Fixes indefined item in user select blade
This commit is contained in:
parent
9687a78981
commit
3b498efee1
|
@ -4,7 +4,7 @@
|
|||
|
||||
<div class="col-md-7 required">
|
||||
<select class="js-data-ajax" data-endpoint="users" name="{{ $fieldname }}" style="width: 100%" id="assigned_user_select">
|
||||
@if ($user_id = Input::old($fieldname, $item->{$fieldname}))
|
||||
@if ($user_id = Input::old($fieldname, (isset($item)) ? $item->{$fieldname} : ''))
|
||||
<option value="{{ $user_id }}" selected="selected">
|
||||
{{ \App\Models\User::find($user_id)->present()->fullName }}
|
||||
</option>
|
||||
|
|
Loading…
Reference in a new issue