Sfoglia il codice sorgente

previene que se realicen consultas sin datos, trayendo demasiados datos

Luciano Andrade 7 anni fa
parent
commit
594d522344
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Form/ChoiceList/Loader/ClientChoiceLoader.php

+ 1 - 1
Form/ChoiceList/Loader/ClientChoiceLoader.php

@@ -93,7 +93,7 @@ class ClientChoiceLoader implements ChoiceLoaderInterface
     public function loadChoiceList($value = null)
     {
         $choices = array();
-        if (empty($this->selected)) {
+        if (is_array($this->selected) and !empty($this->selected)) {
             $choices = $this->getChoicesList(false);
 
             $missing_choices = array_flip($this->selected);