From 5a2b4e5d1e72175ca607a00c875882df349caf56 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 6 Oct 2006 07:04:45 +0000 Subject: [PATCH] Fixed ogroup saving git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4864 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/ogroups/class_ogroup.inc | 7 +++++++ 1 file changed, 7 insertions(+) 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(); } -- 2.30.2