PMCORE-2959

This commit is contained in:
Paula Quispe
2021-04-21 09:16:15 -04:00
parent a4d41d8775
commit d6aaf1de93

View File

@@ -3591,7 +3591,7 @@ class XmlFormFieldDropdown extends XmlFormField
$html .= 'value="' . (($findValue != '') ? $findValue : $firstValue) . '" />';
}
$this->selectedValue = ($findValue != "") ? $findValue : ($count == 0) ? $firstValue : "";
$this->selectedValue = (!empty($findValue) ? $findValue : ($count == 0)) ? $firstValue : "";
} else {
//Render Field showing only value;
foreach ($this->option as $optValue => $optName) {