From dcc0c213b2147d132f4052e6cc3e70e05f579875 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sat, 15 Nov 2014 23:18:50 +0100 Subject: [PATCH] FilterEditor: add redirect support Not the cleanest way, could be improved --- library/Icinga/Web/Widget/FilterEditor.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/library/Icinga/Web/Widget/FilterEditor.php b/library/Icinga/Web/Widget/FilterEditor.php index 7f86a9db2..bef3bf8c2 100644 --- a/library/Icinga/Web/Widget/FilterEditor.php +++ b/library/Icinga/Web/Widget/FilterEditor.php @@ -8,7 +8,9 @@ use Icinga\Data\Filter\Filter; use Icinga\Data\Filter\FilterExpression; use Icinga\Data\Filter\FilterChain; use Icinga\Web\Url; +use Icinga\Application\Icinga; use Icinga\Exception\ProgrammingError; +use Exception; /** * Filter @@ -96,6 +98,12 @@ class FilterEditor extends AbstractWidget return $this; } + protected function redirectNow($url) + { + $response = Icinga::app()->getFrontController()->getResponse(); + $response->redirectAndExit($url); + } + protected function select($name, $list, $selected, $attributes = null) { $view = $this->view();