Skip to content

Commit

Permalink
SearchForm: direct point to search list
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Feb 26, 2016
1 parent 6d1f235 commit 1a7fa0d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/modules/front.portal/presenters/BasePresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,13 @@ protected function createComponentSearch()
{
$search = $this->searchFactory->create();

$search['form']->setMethod('GET');
$search['form']->setAction($this->link(':Front:Portal:List:search'));

$search['form']['q']
->controlPrototype
->data('handle', $this->link(':Front:Portal:List:search', ['q' => '_QUERY_']));

$search->onSearch[] = function ($q) {
$this->redirect(':Front:Portal:List:search', $q);
};

return $search;
}

Expand Down

0 comments on commit 1a7fa0d

Please sign in to comment.