From: hickert Date: Mon, 1 Feb 2010 08:49:29 +0000 (+0000) Subject: Fixed base preselection for new systems, phones ... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cc4dfda6c04d984134188650fb01b4e3fc65808e;p=gosa.git Fixed base preselection for new systems, phones ... git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15521 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc b/gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc index 029b6ca3e..a6c542069 100644 --- a/gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc +++ b/gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc @@ -57,8 +57,8 @@ class wingeneric extends plugin /* Set base */ if ($this->dn == "new"){ - $ui= get_userinfo(); - $this->base= dn2base($ui->dn); + $ui = get_userinfo(); + $this->base= dn2base(session::global_is_set("CurrentMainBase")?session::global_get("CurrentMainBase"):$ui->dn); $this->cn= ""; } else { $this->base= preg_replace ("/^[^,]+,".preg_quote(get_winstations_ou(), '/')."/i", "", $this->dn);