Skip to content

Commit

Permalink
monitoring: Fix URL w/ base filter in the hostssummary
Browse files Browse the repository at this point in the history
refs #5543
  • Loading branch information
lippserd committed Oct 1, 2015
1 parent 968754e commit 6cd1cb0
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 @@ -9,7 +10,8 @@ if (! $stats instanceof stdClass) {
<div class="v-center">
<?= $this->qlink(
sprintf($this->translatePlural('%u Host', '%u Hosts', $stats->hosts_total), $stats->hosts_total),
'monitoring/list/hosts',
// @TODO(el): Fix that
Url::fromPath('monitoring/list/hosts')->setParams(isset($baseFilter) ? $baseFilter->getUrlParams() : array()),
null,
array('title' => sprintf(
$this->translatePlural('List %u host', 'List all %u hosts', $stats->hosts_total),
Expand Down

0 comments on commit 6cd1cb0

Please sign in to comment.