close #1282 Fixed: Selected value not reflected to select box, causes fatal error after save

This commit is contained in:
Cüneyt Şentürk
2020-02-24 16:07:22 +03:00
parent bd7fb93731
commit 4ad2ebfcc2
10 changed files with 18 additions and 18 deletions

View File

@ -14,7 +14,7 @@
placeholder="{{ trans('general.form.select.field', ['field' => $text]) }}"
name="{{ $name }}"
@if(old($name, $value))
@if (isset($value) || old($name))
value="{{ old($name, $value) }}"
@endif
@ -60,7 +60,7 @@
:disabled="'{{ $attributes['disabled'] }}'"
@endif
@if(isset($attributes['v-error-message']))
@if (isset($attributes['v-error-message']))
:form-error="{{ $attributes['v-error-message'] }}"
@else
:form-error="form.errors.get('{{ $name }}')"