diff --git a/library/Director/Objects/IcingaObject.php b/library/Director/Objects/IcingaObject.php index aedc825d..b6d5e10e 100644 --- a/library/Director/Objects/IcingaObject.php +++ b/library/Director/Objects/IcingaObject.php @@ -1134,9 +1134,9 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer public function getRenderingZone(IcingaConfig $config = null) { - if ($this->zone_id) { + if ($zoneId = $this->getResolvedProperty('zone_id')) { // Config has a lookup cache, is faster: - return $config->getZoneName($this->zone_id); + return $config->getZoneName($zoneId); } if ($this->isTemplate() || $this->isApplyRule()) { diff --git a/library/Director/Web/Controller/ActionController.php b/library/Director/Web/Controller/ActionController.php index 1e7d9556..3e9b2c5a 100644 --- a/library/Director/Web/Controller/ActionController.php +++ b/library/Director/Web/Controller/ActionController.php @@ -152,6 +152,12 @@ abstract class ActionController extends Controller 'label' => $this->translate('Sync rule'), 'url' => 'director/list/syncrule' ) + )->add( + 'jobs', + array( + 'label' => $this->translate('Jobs'), + 'url' => 'director/jobs' + ) ); return $this->view->tabs; }