Skip to content

Commit

Permalink
fix: AggregateEntity - always pass QUERY parameter to nested entities
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Stříbrný committed May 20, 2016
1 parent 18380bf commit b5175c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Components/AjaxSelect/Entities/AggregateEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ public function setOptions(array $options) {
foreach ($this->entities as $prefix => $entity) {
if (isset($options[$prefix])) {
$entity->setOptions($options[$prefix]);
}

// pass query parameter to nested entities
if (($value = $this->get(static::OPTION_QUERY)) !== NULL) {
$entity->set(static::OPTION_QUERY, $value);
}
// pass query parameter to nested entities
if (($value = $this->get(static::OPTION_QUERY)) !== NULL) {
$entity->set(static::OPTION_QUERY, $value);
}
}

Expand Down

0 comments on commit b5175c7

Please sign in to comment.