From cbdf64a78488e40ec519b78cf7d9d0cbd4b0c12a Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Fri, 24 Feb 2023 11:12:48 +0100 Subject: [PATCH] new: [element:tagsField] Added support of editable based on passed configuration --- .../element/genericElements/SingleViews/Fields/tagsField.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/element/genericElements/SingleViews/Fields/tagsField.php b/templates/element/genericElements/SingleViews/Fields/tagsField.php index 414da50..6a56530 100644 --- a/templates/element/genericElements/SingleViews/Fields/tagsField.php +++ b/templates/element/genericElements/SingleViews/Fields/tagsField.php @@ -3,6 +3,6 @@ $tags = Cake\Utility\Hash::get($data, 'tags'); echo $this->Tag->tags($tags, [ 'allTags' => $allTags, - 'picker' => true, - 'editable' => true, + 'picker' => !empty($field['editable']), + 'editable' => !empty($field['editable']), ]);