diff --git a/classes/PrettyBlocksModel.php b/classes/PrettyBlocksModel.php index b86bdc34..0557b72a 100644 --- a/classes/PrettyBlocksModel.php +++ b/classes/PrettyBlocksModel.php @@ -393,7 +393,7 @@ public function updateConfig($stateRequest) $fieldsRequest = array_filter($stateRequest, function ($field) { return isset($field['type']) && $field['type'] !== 'title'; }); - + foreach ($fieldsRequest as $key => $field) { $obj = (new FieldCore($field))->setAttribute('new_value', $field['value']); $fields[$key] = $obj;