From e7430558ebb7a60ac5b7b7a80ba9c387d3cb94cf Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 1 Feb 2010 08:49:26 +0000 Subject: [PATCH] Fixed base preselection for new systems, phones ... git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15520 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../rolemanagement/admin/roleManagement/class_roleGeneric.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/rolemanagement/admin/roleManagement/class_roleGeneric.inc b/gosa-plugins/rolemanagement/admin/roleManagement/class_roleGeneric.inc index 518b0e17b..1d5be44be 100644 --- a/gosa-plugins/rolemanagement/admin/roleManagement/class_roleGeneric.inc +++ b/gosa-plugins/rolemanagement/admin/roleManagement/class_roleGeneric.inc @@ -70,7 +70,8 @@ class roleGeneric extends plugin { // Detect the objects 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("roleRDN"), '/i')."/","",$this->dn); } -- 2.30.2