Browse Source

Fix Select Ajax element - refs #8134

Angel Fernando Quiroz Campos 8 years ago
parent
commit
d457fef595
1 changed files with 5 additions and 2 deletions
  1. 5 2
      main/inc/lib/formvalidator/Element/SelectAjax.php

+ 5 - 2
main/inc/lib/formvalidator/Element/SelectAjax.php

@@ -74,10 +74,13 @@ class SelectAjax extends HTML_QuickForm_select
             $url = "'$url'";
         }
 
-        $tags = !empty($this->getAttribute('tags')) ? (bool) $this->getAttribute('tags') : false;
+        $tagsAttr = $this->getAttribute('tags');
+        $multipleAttr = $this->getAttribute('multiple');
+
+        $tags = !empty($tagsAttr) ? (bool) $tagsAttr : false;
         $tags = $tags ? 'true' : 'false';
 
-        $multiple = !empty($this->getAttribute('multiple')) ? (bool) $this->getAttribute('multiple') : false;
+        $multiple = !empty($multipleAttr) ? (bool) $multipleAttr : false;
         $multiple = $multiple ? 'true' : 'false';
 
         $max = $this->getAttribute('maximumSelectionLength');