From: hickert Date: Fri, 20 May 2005 09:08:22 +0000 (+0000) Subject: Fixed base loss in Group plugin X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f08888ac1e3d75269059bf70cd59ad6661040083;p=gosa.git Fixed base loss in Group plugin git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@270 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_groupGeneric.inc b/plugins/admin/groups/class_groupGeneric.inc index f4fc95da9..7ae9d8b5d 100644 --- a/plugins/admin/groups/class_groupGeneric.inc +++ b/plugins/admin/groups/class_groupGeneric.inc @@ -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); }