From 97dd912da985068dd2af993b3769f086526ea269 Mon Sep 17 00:00:00 2001 From: mokaddem Date: Wed, 30 Jun 2021 12:22:22 +0200 Subject: [PATCH] chg: [genericForm] Allow empty option in selector --- templates/element/genericElements/Form/Fields/dropdownField.php | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/element/genericElements/Form/Fields/dropdownField.php b/templates/element/genericElements/Form/Fields/dropdownField.php index 84ea7b8..eb4ea14 100644 --- a/templates/element/genericElements/Form/Fields/dropdownField.php +++ b/templates/element/genericElements/Form/Fields/dropdownField.php @@ -1,6 +1,7 @@ $fieldData['options'], + 'empty' => $fieldData['empty'] ?? false, 'class' => ($fieldData['class'] ?? '') . ' formDropdown custom-select' ]; echo $this->FormFieldMassage->prepareFormElement($this->Form, $controlParams, $fieldData);