monitoring: Fix URL w/ base filter in the hostssummary

refs #5543
This commit is contained in:
Eric Lippmann 2015-10-01 02:52:14 +02:00
parent 968754ec2e
commit 6cd1cb022a
1 changed files with 3 additions and 1 deletions

View File

@ -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) {
@ -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),