From: hickert Date: Mon, 1 Feb 2010 08:49:24 +0000 (+0000) Subject: Fixed base preselection for new systems, phones ... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=139f9f5b3957c95ad48c86231e6bd64b6c6105d0;p=gosa.git Fixed base preselection for new systems, phones ... git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15519 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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);