mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-13 06:47:46 -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">
|
<div class="col-md-7 required">
|
||||||
<select class="js-data-ajax" data-endpoint="users" name="{{ $fieldname }}" style="width: 100%" id="assigned_user_select">
|
<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">
|
<option value="{{ $user_id }}" selected="selected">
|
||||||
{{ \App\Models\User::find($user_id)->present()->fullName }}
|
{{ \App\Models\User::find($user_id)->present()->fullName }}
|
||||||
</option>
|
</option>
|
||||||
|
|
Loading…
Reference in a new issue