summaryrefslogtreecommitdiffstats
path: root/application/modules/backend/controllers/MenuController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/backend/controllers/MenuController.php')
-rw-r--r--application/modules/backend/controllers/MenuController.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/application/modules/backend/controllers/MenuController.php b/application/modules/backend/controllers/MenuController.php
index f8c6a7f..cdfa30b 100644
--- a/application/modules/backend/controllers/MenuController.php
+++ b/application/modules/backend/controllers/MenuController.php
@@ -198,6 +198,22 @@ class Backend_MenuController extends Zend_Controller_Action
}
+ public function delassignmentAction()
+ {
+ $this->_helper->viewRenderer->setNoRender();
+
+ $id = (int) $this->getRequest()->getParam("id");
+
+ $w = $this->_mmenu_assignments->getAdapter()->quoteInto('id = ?', $id);
+ $this->_mmenu_assignments->delete($w);
+
+ $w = $this->_mmenu_assignment_bmrules->getAdapter()->quoteInto('menu_assignment_rule = ?', $id);
+ $this->_mmenu_assignment_bmrules->delete($w);
+
+ $w = $this->_mmenu_assignment_iprules->getAdapter()->quoteInto('menu_assignment_rule = ?', $id);
+ $this->_mmenu_assignment_iprules->delete($w);
+ }
+
}