monitoring: Fix URL w/ base filter in the servicesummary

refs #5543
This commit is contained in:
Eric Lippmann 2015-10-01 02:52:42 +02:00
parent 6cd1cb022a
commit 9a072a8fd4

View File

@ -1,5 +1,6 @@
<?php <?php
use Icinga\Module\Monitoring\Web\Widget\StateBadges; use Icinga\Module\Monitoring\Web\Widget\StateBadges;
use Icinga\Web\Url;
// Don't fetch rows until they are actually needed, to improve dashlet performance // Don't fetch rows until they are actually needed, to improve dashlet performance
if (! $stats instanceof stdClass) { if (! $stats instanceof stdClass) {
@ -12,7 +13,8 @@ if (! $stats instanceof stdClass) {
'%u Service', '%u Services', $stats->services_total), '%u Service', '%u Services', $stats->services_total),
$stats->services_total $stats->services_total
), ),
'monitoring/list/services', // @TODO(el): Fix that
Url::fromPath('monitoring/list/services')->setParams(isset($baseFilter) ? $baseFilter->getUrlParams() : array()),
null, null,
array('title' => sprintf( array('title' => sprintf(
$this->translatePlural('List %u service', 'List all %u services', $stats->services_total), $this->translatePlural('List %u service', 'List all %u services', $stats->services_total),