Revert "FilterEditor::handleRequest(): don't apply a filter's changes if the 'Apply' button hasn't been pressed"

This reverts commit 61a04e7ba1.
This commit is contained in:
Alexander A. Klimov 2016-04-27 12:10:46 +02:00
parent 6607af61e1
commit 45a6259b4c
1 changed files with 5 additions and 6 deletions

View File

@ -323,12 +323,11 @@ class FilterEditor extends AbstractWidget
if ($request->get('cancel') === 'Cancel') {
$this->redirectNow($this->preservedUrl()->without('modifyFilter'));
}
if ($request->get('apply') === 'Apply') {
$filter = $this->applyChanges($request->getPost());
$url = $this->url()->setQueryString($filter->toQueryString())->addParams($preserve);
$url->getParams()->add('modifyFilter');
$this->redirectNow($url);
}
$filter = $this->applyChanges($request->getPost());
$url = $this->url()->setQueryString($filter->toQueryString())->addParams($preserve);
$url->getParams()->add('modifyFilter');
$this->redirectNow($url);
}
$this->url()->getParams()->add('modifyFilter');
}