From f08888ac1e3d75269059bf70cd59ad6661040083 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 20 May 2005 09:08:22 +0000 Subject: [PATCH] Fixed base loss in Group plugin git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@270 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/groups/class_groupGeneric.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); } -- 2.30.2