From bade1de67e96295094a8fc658f2b5f826ae14f97 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 19 Oct 2023 09:48:40 +0200 Subject: [PATCH] wait #6427 --- src/resources/views/fields/select2_from_array.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5