From: cajus Date: Tue, 3 Nov 2009 09:55:46 +0000 (+0000) Subject: Use current selected base, ui->dn only as fallback X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2125b18db9a09e5ad6d2a1fcbac017b67e165cd6;p=gosa.git Use current selected base, ui->dn only as fallback git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14730 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/personal/generic/class_user.inc b/gosa-core/plugins/personal/generic/class_user.inc index 247f2326d..84103a3a0 100644 --- a/gosa-core/plugins/personal/generic/class_user.inc +++ b/gosa-core/plugins/personal/generic/class_user.inc @@ -177,7 +177,7 @@ class user extends plugin /* Do base conversation */ 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); } else { $this->base= dn2base($dn); }