diff --git a/resources/views/form/select.blade.php b/resources/views/form/select.blade.php index 7ef35dae6..bd574b3b5 100755 --- a/resources/views/form/select.blade.php +++ b/resources/views/form/select.blade.php @@ -12,6 +12,7 @@ + @if($groups) @foreach($groups as $group) @@ -21,7 +22,6 @@ @endforeach @else - @foreach($options as $select => $option) {{$option}} @endforeach diff --git a/src/Form/Field/Editor.php b/src/Form/Field/Editor.php index 1bed10ef9..ede5d0778 100755 --- a/src/Form/Field/Editor.php +++ b/src/Form/Field/Editor.php @@ -163,7 +163,7 @@ protected function buildSaveContentScript() return <<findOrNew(Arr::get($related, $keyName)); - if ($related[Form::REMOVE_FLAG_NAME] == 1) { + if (Arr::get($related, Form::REMOVE_FLAG_NAME) == 1) { $instance->delete(); continue;