Skip to content

Commit

Permalink
unnecessary transformation to array
Browse files Browse the repository at this point in the history
formatValues function should return always array
  • Loading branch information
vvoody- committed Jun 28, 2018
1 parent 750555a commit 2eb25a5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Components/AjaxSelect/Traits/AjaxServiceControlTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ protected function processValues($values) {
}

$validItems = $this->getAjaxEntity()->formatValues($validValues);
if (is_iterable($validItems)) {
$validItems = iterator_to_array($validItems);
}

// add to list of valid values
$this->setItems($this->getItems() + $validItems);
Expand Down

0 comments on commit 2eb25a5

Please sign in to comment.