mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
ServicestatusQuery: Define correct grouping rules for contacts and -groups
fixes #4464
This commit is contained in:
parent
7b18f80acc
commit
b94617c575
@ -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