From 589f932fe931a3c468785020727086993189a8ab Mon Sep 17 00:00:00 2001 From: iglocska Date: Thu, 27 Jan 2022 21:09:32 +0100 Subject: [PATCH] chg: [form] dropdown default key added --- .../element/genericElements/Form/Fields/dropdownField.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/element/genericElements/Form/Fields/dropdownField.php b/templates/element/genericElements/Form/Fields/dropdownField.php index 0bfc0e5..364fd9e 100644 --- a/templates/element/genericElements/Form/Fields/dropdownField.php +++ b/templates/element/genericElements/Form/Fields/dropdownField.php @@ -5,6 +5,7 @@ 'value' => $fieldData['value'] ?? null, 'multiple' => $fieldData['multiple'] ?? false, 'disabled' => $fieldData['disabled'] ?? false, - 'class' => ($fieldData['class'] ?? '') . ' formDropdown form-select' + 'class' => ($fieldData['class'] ?? '') . ' formDropdown form-select', + 'default' => ($fieldData['default'] ?? null) ]; echo $this->FormFieldMassage->prepareFormElement($this->Form, $controlParams, $fieldData);