Code

Fixed base loss in Group plugin
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 20 May 2005 09:08:22 +0000 (09:08 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 20 May 2005 09:08:22 +0000 (09:08 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@270 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/groups/class_groupGeneric.inc

index f4fc95da9122c6d0c375abb1b6088e82662408ed..7ae9d8b5db093d862b099f334f880b73ced44ea6 100644 (file)
@@ -227,12 +227,12 @@ class group extends plugin
     }
 
     /* Bases / Departments */
-    if ($this->dn == "new"){
-      $ui= get_userinfo();
-      $this->base= dn2base($ui->dn);
+    if (isset($_POST['base'])){
+      $this->base= $_POST['base'];
     } else {
-      if (isset($_POST['base'])){
-        $this->base= $_POST['base'];
+      if ($this->dn == "new"){
+        $ui= get_userinfo();
+        $this->base= dn2base($ui->dn);
       } else {
         $this->base= preg_replace ("/^[^,]+,[^,]+,/", "", $this->dn);
       }