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->filterQuery($query);
|
||||
$filter = (bool) $this->params->shift('problems', false) ? Filter::where('service_problem', 1) : null;
|
||||
$query->getQuery()->setGroupBase(array());
|
||||
$pivot = $query
|
||||
->pivot(
|
||||
'service_description',
|
||||
|
|
|
@ -990,6 +990,12 @@ abstract class IdoQuery extends DbQuery
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function setGroupBase(array $groupBase)
|
||||
{
|
||||
$this->groupBase = $groupBase;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Register the GROUP BY columns required for the given alias
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue