new: [element:tagsField] Added support of editable based on passed configuration

refacto/CRUDComponent
Sami Mokaddem 2023-02-24 11:12:48 +01:00
parent c148b0993a
commit cbdf64a784
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 2 deletions

View File

@ -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']),
]);