Merged in bugfix/PMCORE-2959 (pull request #7889)

PMCORE-2959

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Paula Quispe
2021-04-22 13:36:09 +00:00
committed by Julio Cesar Laura Avendaño

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) {