From bff24ed57becbd8511e5cf5be70447f351a3f570 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 3 Feb 2010 14:26:50 +0000 Subject: [PATCH] fixed base detection for new objects. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15579 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../rolemanagement/admin/roleManagement/class_roleGeneric.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gosa-plugins/rolemanagement/admin/roleManagement/class_roleGeneric.inc b/gosa-plugins/rolemanagement/admin/roleManagement/class_roleGeneric.inc index dcada6081..227f1e4a5 100644 --- a/gosa-plugins/rolemanagement/admin/roleManagement/class_roleGeneric.inc +++ b/gosa-plugins/rolemanagement/admin/roleManagement/class_roleGeneric.inc @@ -71,7 +71,7 @@ class roleGeneric extends plugin { // Detect the objects base if ($this->dn == "new"){ $ui = get_userinfo(); - $this->base= dn2base(session::global_is_set("CurrentMainBase")?session::global_get("CurrentMainBase"):$ui->dn); + $this->base= dn2base(session::global_is_set("CurrentMainBase")?"cn=dummy,".session::global_get("CurrentMainBase"):$ui->dn); } else { $this->base= preg_replace("/^[^,]+,".preg_quote(get_ou("roleRDN"), '/i')."/","",$this->dn); } -- 2.30.2