From 22ecc412de1dffdd907ae5eeff37a626694338ee Mon Sep 17 00:00:00 2001 From: Björn Geiger Date: Mon, 28 Mar 2011 15:46:08 +0200 Subject: kleine Korrektur --- application/modules/user/controllers/RoleController.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'application/modules/user/controllers/RoleController.php') diff --git a/application/modules/user/controllers/RoleController.php b/application/modules/user/controllers/RoleController.php index 62d1550..d2491ff 100644 --- a/application/modules/user/controllers/RoleController.php +++ b/application/modules/user/controllers/RoleController.php @@ -66,6 +66,9 @@ class User_RoleController extends Zend_Controller_Action public function editAction() { $roleID = $this->_request->getParam('roleID'); + if(!isset($roleID)) { + $roleID = $this->userIDsNamespace['roleID']; + } if(!isset($roleID)) { $addForm = new user_Form_RoleAdd(); $this->view->addForm = $addForm; @@ -106,6 +109,9 @@ class User_RoleController extends Zend_Controller_Action public function showAction() { $roleID = $this->_request->getParam('roleID'); + if(!isset($roleID)) { + $roleID = $this->userIDsNamespace['roleID']; + } if($roleID) { $rightroles = $this->rightRolesMapper->findBy('roleID', $roleID); if(count($rightroles) > 0) { @@ -128,6 +134,9 @@ class User_RoleController extends Zend_Controller_Action public function deleteAction() { $this->_helper->viewRenderer->setNoRender(); + if(!isset($roleID)) { + $roleID = $this->userIDsNamespace['roleID']; + } $roleID = $this->_request->getParam('roleID'); if (isset($roleID)){ $role = $this->roleMapper->find($roleID); @@ -150,6 +159,9 @@ class User_RoleController extends Zend_Controller_Action public function linkrightAction() { $roleID = $this->_request->getParam('roleID'); + if(!isset($roleID)) { + $roleID = $this->userIDsNamespace['roleID']; + } if(isset($roleID)) { $rightroles = $this->rightRolesMapper->findBy('roleID', $roleID); $rights = $this->rightMapper->fetchAll(); -- cgit v1.2.3-55-g7522