Fix that selecting a x-axis link in the service grid produces an invalid filter

I've just fixed this quick and dirty as implementing the complete x IN y
syntax requires too much effort as currently available.

refs 
This commit is contained in:
Johannes Meyer 2014-11-20 14:26:24 +01:00
parent 99ad72a0da
commit 5f37739227
1 changed files with 3 additions and 4 deletions
modules/monitoring/application/views/scripts/list

View File

@ -11,7 +11,7 @@
<?php
$hasHeader = false;
$pivotData = $this->pivot->toArray();
$hostFilter = '(' . implode('|', array_keys($pivotData)) . ')';
$hostFilter = '(host_name=' . implode('|host_name=', array_keys($pivotData)) . ')';
?>
<?php if (count($pivotData) === 0): ?>
@ -37,10 +37,9 @@ $hostFilter = '(' . implode('|', array_keys($pivotData)) . ')';
<a href="<?= $this->href(
'monitoring/list/services',
array(
'service_description' => $service_description,
'host_name' => $hostFilter
'service_description' => $service_description
)
); ?>">
) . '&' . $hostFilter; ?>">
<abbr title="<?= $service_description; ?>">
<?= strlen($service_description) > 18 ? substr($service_description, 0, 18) . '...' : $service_description; ?>
</abbr>