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