From b5175c7f184edf91488a57cac6fab134568c6658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20St=C5=99=C3=ADbrn=C3=BD?= Date: Fri, 20 May 2016 15:14:51 +0200 Subject: [PATCH] fix: AggregateEntity - always pass QUERY parameter to nested entities --- src/Components/AjaxSelect/Entities/AggregateEntity.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Components/AjaxSelect/Entities/AggregateEntity.php b/src/Components/AjaxSelect/Entities/AggregateEntity.php index 54687ec..86d1e26 100644 --- a/src/Components/AjaxSelect/Entities/AggregateEntity.php +++ b/src/Components/AjaxSelect/Entities/AggregateEntity.php @@ -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); } }