From d087ae25757afdab1c5cdc4b7e029a79086d1d79 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Wed, 16 Dec 2015 11:37:30 +0100 Subject: [PATCH] Make Service Grid working with host names that contain only digits fixes #10790 --- library/Icinga/Data/PivotTable.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/library/Icinga/Data/PivotTable.php b/library/Icinga/Data/PivotTable.php index 8423c2dfa..5feae68a1 100644 --- a/library/Icinga/Data/PivotTable.php +++ b/library/Icinga/Data/PivotTable.php @@ -369,8 +369,18 @@ class PivotTable implements Sortable ); if (! empty($xAxis) && ! empty($yAxis)) { $this->baseQuery - ->where($this->xAxisColumn, $xAxisKeys) - ->where($this->yAxisColumn, $yAxisKeys); + ->where($this->xAxisColumn, array_map( + function($key) { + return (string) $key; + }, + $xAxisKeys + )) + ->where($this->yAxisColumn, array_map( + function($key) { + return (string) $key; + }, + $yAxisKeys + )); foreach ($yAxisKeys as $yAxisKey) { foreach ($xAxisKeys as $xAxisKey) {