Make Service Grid working with host names that contain only digits

fixes #10790
This commit is contained in:
Alexander A. Klimov 2015-12-16 11:37:30 +01:00
parent aad7baa5c4
commit d087ae2575

View File

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