|
@@ -178,14 +178,15 @@ class ClientChoiceLoader implements ChoiceLoaderInterface
|
|
|
$choices = $this->webservice->getChoices($this->webserviceParameter, $params);
|
|
|
|
|
|
$result = [];
|
|
|
- $cnt = 0;
|
|
|
+ $cnt = 1;
|
|
|
$limit = 10;
|
|
|
$filter = mb_strtolower($filter);
|
|
|
$filter_len = mb_strlen($filter);
|
|
|
|
|
|
foreach ($choices as $label => $id) {
|
|
|
$result[$label] = $id;
|
|
|
- if (++$cnt >= $limit) {
|
|
|
+ $cnt++;
|
|
|
+ if ($cnt == $limit) {
|
|
|
break;
|
|
|
}
|
|
|
}
|