From d6aaf1de93fd8b252c47d6a4ae33e6af9ac2b518 Mon Sep 17 00:00:00 2001 From: Paula Quispe Date: Wed, 21 Apr 2021 09:16:15 -0400 Subject: [PATCH] PMCORE-2959 --- gulliver/system/class.xmlform.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulliver/system/class.xmlform.php b/gulliver/system/class.xmlform.php index 28b6a15c2..ea2519b19 100644 --- a/gulliver/system/class.xmlform.php +++ b/gulliver/system/class.xmlform.php @@ -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) {