Skip to content

Commit

Permalink
fix: Ensure filter button is rendered at the end of the filter form.
Browse files Browse the repository at this point in the history
  • Loading branch information
fibble committed Sep 19, 2024
1 parent bdd53bf commit e335e29
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/internal/module/Olcs/src/Listener/HeaderSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ public function onDispatch(MvcEvent $e)
$fs = $this->getFormElementManager()
->get(SearchOrderFieldset::class, ['index' => $index, 'name' => 'sort']);
$searchFilterForm->add($fs);

if ($searchFilterForm->has('submit')) {
$submitButton = $searchFilterForm->get('submit');
$searchFilterForm->remove('submit');
$searchFilterForm->add($submitButton);
}
}

$container = new Container(SearchController::CONTAINER);
Expand Down

0 comments on commit e335e29

Please sign in to comment.