瀏覽代碼

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);
     }
 
 }