X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fplugins%2Fadmin%2Fgroups%2Fmain.inc;h=54f7ea3f468560b8301ae146b01ab57ef695ff18;hb=ed78890a0b417c288d33f20487d35b57223451ff;hp=f8f82c586832b98d48c2f6f1813b61e27336ab2a;hpb=951ff52238278141c5d423bda877eea92c86ce32;p=gosa.git diff --git a/gosa-core/plugins/admin/groups/main.inc b/gosa-core/plugins/admin/groups/main.inc index f8f82c586..54f7ea3f4 100644 --- a/gosa-core/plugins/admin/groups/main.inc +++ b/gosa-core/plugins/admin/groups/main.inc @@ -1,55 +1,51 @@ remove_lock(); - del_lock ($ui->dn); - sess_del ('groupManagement'); - } -} else { - /* Create groupManagement object on demand */ - if (!isset($_SESSION['groupManagement']) || (isset($_GET['reset']) && $_GET['reset'] == 1)){ - $_SESSION['groupManagement']= new groupManagement ($config, $_SESSION['ui']); + if(session::is_set('groupManagement')){ + $macl = session::get('groupManagement'); + $macl->remove_lock(); } - $groupManagement= $_SESSION['groupManagement']; - $groupManagement->save_object(); - $output= $groupManagement->execute(); +} - /* Page header*/ - if (session::is_set('objectinfo')){ - $display= print_header(get_template_path('images/group.png'), - _("Group administration"), "\"\" ". - @LDAP::fix($_SESSION['objectinfo'])); - } else { - $display= print_header(get_template_path('images/group.png'), _("Group administration")); - } +/* Remove this plugin from session +*/ +if ( $cleanup ){ + session::un_set('groupManagement'); +}else{ - $display.= $output; + /* Create groupmanagement object on demand */ + if (!session::is_set('groupManagement')){ + $groupManagement= new groupManagement ($config, $ui); + session::set('groupManagement',$groupManagement); + } + $groupManagement = session::get('groupManagement'); + $display= $groupManagement->execute(); /* Reset requested? */ if (isset($_GET['reset']) && $_GET['reset'] == 1){ - del_lock ($ui->dn); - sess_del ('groupManagement'); + session::un_set ('groupManagement'); } /* Show and save dialog */