mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-23 09:57:58 +02:00
ServicestatusQuery: Define correct grouping rules for contacts and -groups
fixes #4464 (cherry picked from commit b94617c5756dd7fd883869b90dc705f303cd3e41)
This commit is contained in:
parent
b6d68ad752
commit
4318b054cc
@ -494,6 +494,14 @@ class ServicestatusQuery extends IdoQuery
|
|||||||
$groupedColumns[] = 'ss.servicestatus_id';
|
$groupedColumns[] = 'ss.servicestatus_id';
|
||||||
$groupedTables['servicestatus'] = true;
|
$groupedTables['servicestatus'] = true;
|
||||||
}
|
}
|
||||||
|
} elseif ($table === 'contacts') {
|
||||||
|
$groupedColumns[] = 'sc.service_contact_id';
|
||||||
|
$groupedColumns[] = 'sco.object_id';
|
||||||
|
$groupedTables[$table] = true;
|
||||||
|
} elseif ($table === 'contactgroups') {
|
||||||
|
$groupedColumns[] = 'scg.service_contactgroup_id';
|
||||||
|
$groupedColumns[] = 'scgo.object_id';
|
||||||
|
$groupedTables[$table] = true;
|
||||||
} else {
|
} else {
|
||||||
parent::registerGroupColumns($alias, $table, $groupedColumns, $groupedTables);
|
parent::registerGroupColumns($alias, $table, $groupedColumns, $groupedTables);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user