From: Vincent Vanwaelscappel Date: Thu, 19 Oct 2023 07:48:40 +0000 (+0200) Subject: wait #6427 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=bade1de67e96295094a8fc658f2b5f826ae14f97;p=cubist_cms-back.git wait #6427 --- diff --git a/src/resources/views/fields/select2_from_array.blade.php b/src/resources/views/fields/select2_from_array.blade.php index c0e97f5..216197b 100644 --- a/src/resources/views/fields/select2_from_array.blade.php +++ b/src/resources/views/fields/select2_from_array.blade.php @@ -39,7 +39,7 @@ if($ajax){ @if($ajax) data-ajax="{{$field['ajax']}}" @endif @if($allows_html) data-allow-html="1" @endif data-options="{{ json_encode($field['options']) }}" - @if($field['free']) data-free="1" @endif + @if(isset($field['free']) && $field['free']) data-free="1" @endif data-value="{{is_scalar($o)?$o:json_encode($o)}}" > @if (isset($field['allows_null']) && $field['allows_null']==true)