From bd73962aad2fd36562d615a314e5f531d2e95c62 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 1 Feb 2010 08:36:02 +0000 Subject: [PATCH] Fixed base preselection for new systems, phones ... git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15510 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/systems/admin/systems/class_componentGeneric.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gosa-plugins/systems/admin/systems/class_componentGeneric.inc b/gosa-plugins/systems/admin/systems/class_componentGeneric.inc index 70477398b..d26d53be6 100644 --- a/gosa-plugins/systems/admin/systems/class_componentGeneric.inc +++ b/gosa-plugins/systems/admin/systems/class_componentGeneric.inc @@ -48,7 +48,7 @@ class componentGeneric extends plugin /* Set base */ if ($this->dn == "new"){ $ui= get_userinfo(); - $this->base= dn2base($ui->dn); + $this->base= dn2base(session::global_is_set("CurrentMainBase")?"cn=dummy,".session::global_get("CurrentMainBase"):$ui->dn); $this->cn= ""; } else { $this->base= preg_replace ("/^[^,]+,".preg_quote(get_ou("componentRDN"), '/')."/i", "", $this->dn); -- 2.30.2