Fix grouping in the new contact queries

refs #3088
This commit is contained in:
Eric Lippmann 2018-07-18 15:20:05 +02:00
parent 5befab6a2b
commit d5d336884c
2 changed files with 8 additions and 2 deletions

View File

@ -10,7 +10,10 @@ class HostcontactQuery extends IdoQuery
{
protected $allowCustomVars = true;
protected $groupBase = ['contacts' => ['co.object_id', 'c.contact_id'], 'timeperiods' => ['ht.timeperiod_id']];
protected $groupBase = [
'contacts' => ['co.object_id', 'c.contact_id'],
'timeperiods' => ['ht.timeperiod_id', 'st.timeperiod_id']
];
protected $groupOrigin = ['contactgroups', 'hosts', 'services'];

View File

@ -10,7 +10,10 @@ class ServicecontactQuery extends IdoQuery
{
protected $allowCustomVars = true;
protected $groupBase = ['contacts' => ['co.object_id', 'c.contact_id'], 'timeperiods' => ['st.timeperiod_id']];
protected $groupBase = [
'contacts' => ['co.object_id', 'c.contact_id'],
'timeperiods' => ['ht.timeperiod_id', 'st.timeperiod_id']
];
protected $groupOrigin = ['contactgroups', 'hosts', 'services'];