diff --git a/doc/82-Changelog.md b/doc/82-Changelog.md index 6b6c86b8..9ac55726 100644 --- a/doc/82-Changelog.md +++ b/doc/82-Changelog.md @@ -26,6 +26,9 @@ next (will be 1.8.0) ### DB Schema * FIX: Rolling out new installations on MySQL v5.6 fails (#1993) +### Icinga Configuration +* FIX: Render service\_name for Notifications (#2006) + 1.7.1 ----- diff --git a/library/Director/Objects/IcingaNotification.php b/library/Director/Objects/IcingaNotification.php index 13d5ce99..e4182232 100644 --- a/library/Director/Objects/IcingaNotification.php +++ b/library/Director/Objects/IcingaNotification.php @@ -244,6 +244,18 @@ class IcingaNotification extends IcingaObject implements ExportInterface return $this->renderRelationProperty('host', $this->get('host_id'), 'host_name'); } + /** + * Render service_id as service_name + * + * @codingStandardsIgnoreStart + * @return string + */ + public function renderService_id() + { + // @codingStandardsIgnoreEnd + return $this->renderRelationProperty('service', $this->get('service_id'), 'service_name'); + } + protected function setKey($key) { if (is_int($key)) {