Преглед изворни кода

Merge branch 'master' of ssh://infra.flowdat.com:222/VendorSoftwareFlowdat3/Webservice

Maximiliano Schvindt пре 8 година
родитељ
комит
0f3977e0e2
1 измењених фајлова са 4 додато и 3 уклоњено
  1. 4 3
      Form/ChoiceList/Loader/ClientChoiceLoader.php

+ 4 - 3
Form/ChoiceList/Loader/ClientChoiceLoader.php

@@ -179,7 +179,7 @@ class ClientChoiceLoader implements ChoiceLoaderInterface
      */
     protected function choiceExists($id)
     {
-        $label = array_search($id, $this->initChoices());
+        $label = array_search($id, $this->initChoices(array("id" => $id)));
 
         return $label === false ? false : true;
     }
@@ -195,11 +195,12 @@ class ClientChoiceLoader implements ChoiceLoaderInterface
     }
 
     /**
+     * @param array $params Contiene un array con los datos a verificar.
      * @return array
      */
-    protected function initChoices()
+    protected function initChoices($params = array())
     {
-        return $this->webservice->getChoices('client');
+        return $this->webservice->getChoices('client', $params);
     }
 
 }