mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
FilterEditor: add redirect support
Not the cleanest way, could be improved
This commit is contained in:
parent
ac483a0fe6
commit
dcc0c213b2
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user