[icinga-checkins] icinga.org: icingaweb2-module-director/master: ServiceController: offer assign only for apply

git at icinga.org git at icinga.org
Wed Feb 24 21:41:14 CET 2016


Module: icingaweb2-module-director
Branch: master
Commit: 0e11d60928acbbb79cd4db56b700561bdd257d75
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=0e11d60928acbbb79cd4db56b700561bdd257d75

Author: Thomas Gelf <thomas at gelf.net>
Date:   Wed Feb 24 21:40:46 2016 +0100

ServiceController: offer assign only for apply

---

 application/controllers/ServiceController.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/controllers/ServiceController.php b/application/controllers/ServiceController.php
index 173a32d..6065491 100644
--- a/application/controllers/ServiceController.php
+++ b/application/controllers/ServiceController.php
@@ -11,7 +11,7 @@ class ServiceController extends ObjectController
     public function init()
     {
         parent::init();
-        if ($this->object) {
+        if ($this->object && $this->object->object_type === 'apply') {
             $this->getTabs()->add('assign', array(
                 'url' => 'director/service/assign',
                 'urlParams' => array('name' => $this->object->object_name),



More information about the icinga-checkins mailing list