From 76ff4ebfd227d769da95308872eee52e2fa7d30e Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 4 Nov 2016 09:23:39 +0100 Subject: [PATCH] Sets: enable them --- application/controllers/ServiceController.php | 2 +- library/Director/Web/Controller/ObjectsController.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/application/controllers/ServiceController.php b/application/controllers/ServiceController.php index 304786ad..c7ca924b 100644 --- a/application/controllers/ServiceController.php +++ b/application/controllers/ServiceController.php @@ -65,7 +65,7 @@ class ServiceController extends ObjectController 'urlParams' => array('name' => $this->host->object_name), 'label' => $this->translate('Services'), )); - } elseif ($this->host) { + } elseif ($this->set) { $this->getTabs()->add('services', array( 'url' => 'director/serviceset/services', 'urlParams' => array('name' => $this->set->object_name), diff --git a/library/Director/Web/Controller/ObjectsController.php b/library/Director/Web/Controller/ObjectsController.php index d2fe40ec..11584c7a 100644 --- a/library/Director/Web/Controller/ObjectsController.php +++ b/library/Director/Web/Controller/ObjectsController.php @@ -71,12 +71,10 @@ abstract class ObjectsController extends ActionController } if ($object->supportsSets() || $object->isGroup() /** Bullshit, need base object, wrong on users */) { - /** forced to master, disabled for now $tabs->add('sets', array( 'url' => sprintf('director/%ss/sets', $type), 'label' => $this->translate('Sets') )); - */ } $tabs->add('tree', array(