mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 22:34:24 +02:00
monitoring/show/services: QUERY_STRING voodoo
Looks less ugly than before, still ugly nonetheless. Will be better once we care about request routing by ourselves.
This commit is contained in:
parent
304c7d146b
commit
a42b66ab14
@ -107,8 +107,8 @@ class Monitoring_ShowController extends Controller
|
||||
{
|
||||
$this->getTabs()->activate('services');
|
||||
$this->_setParam('service', '');
|
||||
// WTF???? UrlViewFilter is messing with $_SERVER['QUERY_STRING'], great!
|
||||
$_SERVER['QUERY_STRING'] = preg_replace('~&service=[^&]+(?:&|$)~', '', $_SERVER['QUERY_STRING']);
|
||||
// TODO: This used to be a hack and still is. Modifying query string here.
|
||||
$_SERVER['QUERY_STRING'] = (string) $this->params->without('service');
|
||||
$this->view->services = $this->view->action('services', 'list', 'monitoring', array(
|
||||
'view' => 'compact',
|
||||
'limit' => '',
|
||||
|
Loading…
x
Reference in New Issue
Block a user