|
@@ -37,11 +37,7 @@ class RemoteClientExtension extends \Twig_Extension
|
|
*/
|
|
*/
|
|
public function getClient($clientId)
|
|
public function getClient($clientId)
|
|
{
|
|
{
|
|
- $client = $this->webservice->getArray('client', array(
|
|
|
|
- 'id' => $clientId
|
|
|
|
- ));
|
|
|
|
-
|
|
|
|
- return isset($client[0]) ? "{$client[0]['id']} - {$client[0]['name']}" : $clientId;
|
|
|
|
|
|
+ return $this->webservice->getById('client', $clientId);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|