From 706e916aad0aa813f451589662c446d70afd0e84 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sat, 11 Jun 2016 00:36:03 +0200 Subject: [PATCH] NotificationController: remove obsolete assign tab fixes #11909 --- .../controllers/NotificationController.php | 31 +------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/application/controllers/NotificationController.php b/application/controllers/NotificationController.php index 48f3650d..c4097dcf 100644 --- a/application/controllers/NotificationController.php +++ b/application/controllers/NotificationController.php @@ -12,13 +12,8 @@ class NotificationController extends ObjectController public function init() { parent::init(); + // TODO: Check if this is still needed, remove it otherwise if ($this->object && $this->object->object_type === 'apply') { - $this->getTabs()->add('assign', array( - 'url' => 'director/notification/assign', - 'urlParams' => $this->object->getUrlParams(), - 'label' => 'Assign' - )); - if ($host = $this->params->get('host')) { foreach ($this->getTabs()->getTabs() as $tab) { $tab->getUrl()->setParam('host', $host); @@ -33,30 +28,6 @@ class NotificationController extends ObjectController } } - public function assignAction() - { - $this->getTabs()->activate('assign'); - $this->view->form = $form = $this->loadForm('icingaNotificationAssignment'); - $form - ->setIcingaObject($this->object) - ->setDb($this->db()); - if ($id = $this->params->get('rule_id')) { - $this->view->actionLinks = $this->view->qlink( - $this->translate('back'), - $this->getRequest()->getUrl()->without('rule_id'), - null, - array('class' => 'icon-left-big') - ); - $form->loadObject($id); - } - $form->handleRequest(); - - $this->view->table = $this->loadTable('icingaObjectAssignment') - ->setObject($this->object); - $this->view->title = 'Assign notification'; - $this->render('object/fields', null, true); // TODO: render table - } - protected function loadObject() { if ($this->object === null) {