From 3f14124faac0f4d4b1de0afff9aa8739d0862e73 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 13 Sep 2010 13:39:10 +0000 Subject: [PATCH] fixed plugin handling in case of GET_[reset] git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19636 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/roleManagement/main.inc | 41 ++++++++++--------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/gosa-plugins/rolemanagement/admin/roleManagement/main.inc b/gosa-plugins/rolemanagement/admin/roleManagement/main.inc index 7e2d82fec..8faaaa11a 100644 --- a/gosa-plugins/rolemanagement/admin/roleManagement/main.inc +++ b/gosa-plugins/rolemanagement/admin/roleManagement/main.inc @@ -21,35 +21,36 @@ */ /* Remove locks created by this plugin -*/ + */ if ($remove_lock){ - if(session::is_set('roleManagement')){ - $macl = session::get('roleManagement'); - $macl->remove_lock(); - } + if(session::is_set('roleManagement')){ + $macl = session::get('roleManagement'); + $macl->remove_lock(); + session::un_set('roleManagement'); + } } /* Remove this plugin from session -*/ + */ if ( $cleanup ){ - session::un_set('roleManagement'); + session::un_set('roleManagement'); }else{ - /* Create rolemanagement object on demand */ - if (!session::is_set('roleManagement')){ - $roleManagement= new roleManagement ($config, $ui); - session::set('roleManagement',$roleManagement); - } - $roleManagement = session::get('roleManagement'); - $display= $roleManagement->execute(); + /* Create rolemanagement object on demand */ + if (!session::is_set('roleManagement')){ + $roleManagement= new roleManagement ($config, $ui); + session::set('roleManagement',$roleManagement); + } + $roleManagement = session::get('roleManagement'); + $display= $roleManagement->execute(); - /* Reset requested? */ - if (isset($_GET['reset']) && $_GET['reset'] == 1){ - session::un_set ('roleManagement'); - } + /* Reset requested? */ + if (isset($_GET['reset']) && $_GET['reset'] == 1){ + session::un_set ('roleManagement'); + } - /* Show and save dialog */ - session::set('roleManagement',$roleManagement); + /* Show and save dialog */ + session::set('roleManagement',$roleManagement); } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: -- 2.30.2