From 0e11d60928acbbb79cd4db56b700561bdd257d75 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 24 Feb 2016 21:40:46 +0100 Subject: [PATCH] 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 173a32d9..60654910 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),