From: Vincent Vanwaelscappel Date: Mon, 17 Jun 2019 12:13:42 +0000 (+0200) Subject: wip #2835 @1.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=2c80c2dea3fce6754d0a1567dbf3619ad0ada31e;p=cubist_cms-back.git wip #2835 @1.5 --- diff --git a/src/resources/views/fields/tags.blade.php b/src/resources/views/fields/tags.blade.php index 5225461..ac19edb 100644 --- a/src/resources/views/fields/tags.blade.php +++ b/src/resources/views/fields/tags.blade.php @@ -1,3 +1,10 @@ +@php + $values=json_decode(old(square_brackets_to_dots($field['name'])) ?? $field['value'] ?? $field['default'] ?? '[]'); + if(!is_array($values)){ + $values=[]; + } +@endphp +
@@ -12,6 +19,9 @@ style="width: 100%" @include('crud::inc.field_attributes', ['default_class' => 'form-control select2_tags']) multiple> + @foreach($values as $value) + + @endforeach @if(isset($field['suffix']))
{!! $field['suffix'] !!}
@endif