ListController: Fix servicegrid grouping when applying group restrictions
Quickfix only. refs #10316
This commit is contained in:
parent
b182a31b90
commit
cc37ca37d9
|
@ -545,6 +545,7 @@ class ListController extends Controller
|
||||||
$this->applyRestriction('monitoring/filter/objects', $query);
|
$this->applyRestriction('monitoring/filter/objects', $query);
|
||||||
$this->filterQuery($query);
|
$this->filterQuery($query);
|
||||||
$filter = (bool) $this->params->shift('problems', false) ? Filter::where('service_problem', 1) : null;
|
$filter = (bool) $this->params->shift('problems', false) ? Filter::where('service_problem', 1) : null;
|
||||||
|
$query->getQuery()->setGroupBase(array());
|
||||||
$pivot = $query
|
$pivot = $query
|
||||||
->pivot(
|
->pivot(
|
||||||
'service_description',
|
'service_description',
|
||||||
|
|
|
@ -990,6 +990,12 @@ abstract class IdoQuery extends DbQuery
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setGroupBase(array $groupBase)
|
||||||
|
{
|
||||||
|
$this->groupBase = $groupBase;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register the GROUP BY columns required for the given alias
|
* Register the GROUP BY columns required for the given alias
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue