Skip to content

Commit

Permalink
monitoring: Fix URL w/ base filter in the servicesummary
Browse files Browse the repository at this point in the history
refs #5543
  • Loading branch information
lippserd committed Oct 1, 2015
1 parent 6cd1cb0 commit 9a072a8
Showing 1 changed file with 3 additions and 1 deletion.
@@ -1,5 +1,6 @@
<?php
use Icinga\Module\Monitoring\Web\Widget\StateBadges;
use Icinga\Web\Url;

// Don't fetch rows until they are actually needed, to improve dashlet performance
if (! $stats instanceof stdClass) {
Expand All @@ -12,7 +13,8 @@ if (! $stats instanceof stdClass) {
'%u Service', '%u Services', $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,
array('title' => sprintf(
$this->translatePlural('List %u service', 'List all %u services', $stats->services_total),
Expand Down

0 comments on commit 9a072a8

Please sign in to comment.