Code

Fixed ogroup saving
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 6 Oct 2006 07:04:45 +0000 (07:04 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 6 Oct 2006 07:04:45 +0000 (07:04 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4864 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/ogroups/class_ogroup.inc

index f2a186c12054b8b307e0237a2142b969cd7a358b..8d5c5b3ee4e93a0991ae1898dfacfd0d157663b6 100644 (file)
@@ -85,6 +85,13 @@ class ogroup extends plugin
      $this->base = $_SESSION['CurrentMainBase'];
     }
 
+    /* Set base */
+    if ($this->dn == "new"){
+      $this->base= $_SESSION['CurrentMainBase'];
+    } else {
+      $this->base= preg_replace("/^[^,]+,".get_groups_ou()."/","",$this->dn);
+    }
+
     /* Load member data */
     $this->reload();
   }