Code

fixed base detection for new objects.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 3 Feb 2010 14:26:50 +0000 (14:26 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 3 Feb 2010 14:26:50 +0000 (14:26 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15579 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/rolemanagement/admin/roleManagement/class_roleGeneric.inc

index dcada60819a175d53506497f95a48cf960cf654b..227f1e4a58318af42ae9909979489c6536c05c8f 100644 (file)
@@ -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);
     }