mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
Fix multiple contacts display in service and host detail pane
fixes #7329
This commit is contained in:
parent
b38e3affb9
commit
f095489017
@ -317,10 +317,12 @@ abstract class MonitoredObject
|
|||||||
'contact_alias',
|
'contact_alias',
|
||||||
'contact_email',
|
'contact_email',
|
||||||
'contact_pager',
|
'contact_pager',
|
||||||
))
|
));
|
||||||
->where('host_name', $this->host_name);
|
|
||||||
if ($this->type === self::TYPE_SERVICE) {
|
if ($this->type === self::TYPE_SERVICE) {
|
||||||
|
$contacts->where('service_host_name', $this->host_name);
|
||||||
$contacts->where('service_description', $this->service_description);
|
$contacts->where('service_description', $this->service_description);
|
||||||
|
} else {
|
||||||
|
$contacts->where('host_name', $this->host_name);
|
||||||
}
|
}
|
||||||
$this->contacts = $contacts->getQuery()->fetchAll();
|
$this->contacts = $contacts->getQuery()->fetchAll();
|
||||||
return $this;
|
return $this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user