From: hickert Date: Thu, 26 Oct 2006 04:43:06 +0000 (+0000) Subject: Fixed group base detection. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1c79b774ab561dd7f9d0fa9c4e9fa2a60b3f5c6e;p=gosa.git Fixed group base detection. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4942 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_groupGeneric.inc b/plugins/admin/groups/class_groupGeneric.inc index 3f87a2a17..a03f6a91e 100644 --- a/plugins/admin/groups/class_groupGeneric.inc +++ b/plugins/admin/groups/class_groupGeneric.inc @@ -154,7 +154,9 @@ class group extends plugin $this->base= dn2base($ui->dn); } } else { - $this->base= preg_replace ("/^[^,]+,[^,]+,/", "", $this->dn); + + /* Get object base */ + $this->base =preg_replace ("/^[^,]+,".normalizePreg(get_groups_ou())."/","",$this->dn); } /* This is always an account */