mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 00:04:04 +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\FilterExpression;
|
||||||
use Icinga\Data\Filter\FilterChain;
|
use Icinga\Data\Filter\FilterChain;
|
||||||
use Icinga\Web\Url;
|
use Icinga\Web\Url;
|
||||||
|
use Icinga\Application\Icinga;
|
||||||
use Icinga\Exception\ProgrammingError;
|
use Icinga\Exception\ProgrammingError;
|
||||||
|
use Exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter
|
* Filter
|
||||||
@ -96,6 +98,12 @@ class FilterEditor extends AbstractWidget
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function redirectNow($url)
|
||||||
|
{
|
||||||
|
$response = Icinga::app()->getFrontController()->getResponse();
|
||||||
|
$response->redirectAndExit($url);
|
||||||
|
}
|
||||||
|
|
||||||
protected function select($name, $list, $selected, $attributes = null)
|
protected function select($name, $list, $selected, $attributes = null)
|
||||||
{
|
{
|
||||||
$view = $this->view();
|
$view = $this->view();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user