소스 검색

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