IcingaObject: use resolved zone for apply/tpl
This commit is contained in:
parent
3d1840d310
commit
576d62da26
|
@ -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()) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue