Code

Fixed saving for new devices
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 12 Nov 2007 09:02:04 +0000 (09:02 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 12 Nov 2007 09:02:04 +0000 (09:02 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7768 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_systemManagement.inc

index 77c6eb364a81306ab70508cbad81cafd843834d2..abf282cd53634a9ac67b9ba186478b7118d18ac4 100644 (file)
@@ -517,7 +517,6 @@ class systems extends plugin
 
         if(isset($_SESSION['SelectedSystemType'])){
           $SelectedSystemType= $_SESSION['SelectedSystemType'];
-          unset($_SESSION['SelectedSystemType']);
           if($SelectedSystemType['ogroup'] != "none"){
             $og = new ogroup($this->config,$SelectedSystemType['ogroup']);
             if($og){
@@ -543,6 +542,7 @@ class systems extends plugin
         gosa_log ("System object'".$this->dn."' has been saved");
 
         if(isset($_SESSION['SelectedSystemType'])){
+          unset($_SESSION['SelectedSystemType']);
           if(!isset($ldap)){
             $ldap = $this->config->get_ldap_link();
           }