diff --git a/src/View/Helper/FormHelper.php b/src/View/Helper/FormHelper.php index 15fc2edf94b..866f723c498 100644 --- a/src/View/Helper/FormHelper.php +++ b/src/View/Helper/FormHelper.php @@ -2869,14 +2869,15 @@ protected function _initInputField($field, $options = []) { if (isset($options['value']) && !isset($options['val'])) { $options['val'] = $options['value']; + unset($options['value']); } if (!isset($options['val'])) { $options['val'] = $context->val($field); } if (!isset($options['val']) && isset($options['default'])) { $options['val'] = $options['default']; + unset($options['default']); } - unset($options['value'], $options['default']); $options += (array)$context->attributes($field);