From 139f9f5b3957c95ad48c86231e6bd64b6c6105d0 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 1 Feb 2010 08:49:24 +0000 Subject: [PATCH] Fixed base preselection for new systems, phones ... git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15519 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/admin/ogroups/class_ogroup.inc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gosa-core/plugins/admin/ogroups/class_ogroup.inc b/gosa-core/plugins/admin/ogroups/class_ogroup.inc index 8465e48cf..6ad3e16fc 100644 --- a/gosa-core/plugins/admin/ogroups/class_ogroup.inc +++ b/gosa-core/plugins/admin/ogroups/class_ogroup.inc @@ -116,13 +116,10 @@ class ogroup extends plugin } session::set("ogfilter", $ogfilter); - if(session::is_set('CurrentMainBase')){ - $this->base = session::get('CurrentMainBase'); - } - /* Set base */ if ($this->dn == "new"){ - $this->base = session::get('CurrentMainBase'); + $ui = get_userinfo(); + $this->base= dn2base(session::global_is_set("CurrentMainBase")?session::global_get("CurrentMainBase"):$ui->dn); } else { $this->base= preg_replace("/^[^,]+,".preg_quote(get_ou("ogroupRDN"), '/')."/i","",$this->dn); -- 2.30.2