Code

Fixed ogroup problem
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 9 May 2006 07:48:57 +0000 (07:48 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 9 May 2006 07:48:57 +0000 (07:48 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3227 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_systemManagement.inc

index 89286db3793b93b9832d83b535a5e0d865540cd4..c3ee3c88dd65c38d54b4795a70e49b31fa5b597a 100644 (file)
@@ -96,6 +96,7 @@ class systems extends plugin
     if(isset($_POST['SystemTypeChoosen'])){
       $s_action = "SelectedSystemType";
       $s_entry  = $_POST['SystemType'];
+      $_SESSION['SelectedSystemType']['ogroup'] = $_POST['ObjectGroup'];
       $this->systab = NULL;
     }
 
@@ -408,6 +409,7 @@ class systems extends plugin
          * If this is done, delete the old incoming entry... it is still there, because this is a new 
          * entry and not an edited one, so we will delete it.
          */
+
         if(isset($_SESSION['SelectedSystemType'])){
           $SelectedSystemType= $_SESSION['SelectedSystemType'];
           unset($_SESSION['SelectedSystemType']);
@@ -415,8 +417,8 @@ class systems extends plugin
             $og = new ogroup($this->config,$SelectedSystemType['ogroup']);
             if($og){
               $og->AddDelMembership($this->systab->dn);
+              $og->save();
             }
-            $og->save();
           }
           if(!isset($ldap)){
             $ldap = $this->config->get_ldap_link();