Fix show all services links in the servicegroup overview

Before, the forced servicegroup_name paramemter may interfere with an
existing servicegroup_name filter.
This commit is contained in:
Eric Lippmann 2019-07-16 10:12:33 +02:00 committed by Johannes Meyer
parent 58e3ae46a7
commit bee5099a08
1 changed files with 6 additions and 3 deletions

View File

@ -38,9 +38,12 @@ if (! $this->compact): ?>
<th> <th>
<?= $this->qlink( <?= $this->qlink(
$serviceGroup->servicegroup_alias, $serviceGroup->servicegroup_alias,
$this->url('monitoring/list/services')->addFilter($this->filterEditor->getFilter()), $this
array('servicegroup_name' => $serviceGroup->servicegroup_name, 'sort' => 'service_severity'), ->url('monitoring/list/services')
array('title' => sprintf($this->translate('List all services in the group "%s"'), $serviceGroup->servicegroup_alias)) ->setParams(['servicegroup_name' => $serviceGroup->servicegroup_name])
->addFilter($this->filterEditor->getFilter()),
['sort' => 'service_severity'],
['title' => sprintf($this->translate('List all services in the group "%s"'), $serviceGroup->servicegroup_alias)]
) ?> ) ?>
</th> </th>
<td> <td>