🚑 fix(SelectAttribute) Ignore new behavior for empty value

When there are no choices, do not add the empty value.

issue #5886
parent 44333126
......@@ -167,7 +167,7 @@ class SelectAttribute extends Attribute
$smartyOutputs = $this->choices;
}
if (!in_array($currentValue, $smartyChoices)) {
if (!empty($currentValue) && !in_array($currentValue, $smartyChoices)) {
$smartyChoices[] = $currentValue;
$smartyOutputs[] = $currentValue;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment