File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/resources/views/crud/fields Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1010 $model_instance = new $field [' model' ];
1111 $options_ids_array = $field [' options' ]-> pluck ($model_instance -> getKeyName ())-> toArray ();
1212
13- $field [' multiple' ] = isset ( $field [' multiple' ]) && $field [ ' multiple ' ] === false ? ' ' : ' multiple ' ;
13+ $field [' multiple' ] = $field [' multiple' ] ?? true ;
1414@endphp
1515
1616@include (' crud::fields.inc.wrapper_start' )
2323 data-select-all =" {{ var_export ($field [' select_all' ] ?? false ) } }"
2424 data-options-for-js =" {{ json_encode (array_values ($options_ids_array ))} }"
2525 @include (' crud::fields.inc.attributes' , [' default_class' => ' form-control select2_multiple' ] )
26- {{ $ multiple} } >
26+ {{ $field [ ' multiple' ] ? ' multiple ' : ' ' } } >
2727
2828 @if (isset ($field [' allows_null' ]) && $field [' allows_null' ]== true )
2929 <option value =" " >-</option >
You can’t perform that action at this time.
0 commit comments