From: hickert Date: Fri, 6 Oct 2006 07:04:45 +0000 (+0000) Subject: Fixed ogroup saving X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5a2b4e5d1e72175ca607a00c875882df349caf56;p=gosa.git Fixed ogroup saving git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4864 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/ogroups/class_ogroup.inc b/plugins/admin/ogroups/class_ogroup.inc index f2a186c12..8d5c5b3ee 100644 --- a/plugins/admin/ogroups/class_ogroup.inc +++ b/plugins/admin/ogroups/class_ogroup.inc @@ -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(); }