Revert "Revert "FilterEditor::handleRequest(): don't apply a filter's changes if the 'Apply' button hasn't been pressed""
This reverts commit 45a6259b4c
.
This commit is contained in:
parent
45a6259b4c
commit
281e6e8163
|
@ -323,11 +323,12 @@ class FilterEditor extends AbstractWidget
|
|||
if ($request->get('cancel') === 'Cancel') {
|
||||
$this->redirectNow($this->preservedUrl()->without('modifyFilter'));
|
||||
}
|
||||
|
||||
$filter = $this->applyChanges($request->getPost());
|
||||
$url = $this->url()->setQueryString($filter->toQueryString())->addParams($preserve);
|
||||
$url->getParams()->add('modifyFilter');
|
||||
$this->redirectNow($url);
|
||||
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);
|
||||
}
|
||||
}
|
||||
$this->url()->getParams()->add('modifyFilter');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue