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