From: hickert Date: Tue, 30 May 2006 10:38:12 +0000 (+0000) Subject: Fixed home switch X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=548b33870dd5d21752e40b8d0346a985713f3296;p=gosa.git Fixed home switch git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3561 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_MultiSelectWindow.inc b/include/class_MultiSelectWindow.inc index 542d8c18c..df2e0ee37 100644 --- a/include/class_MultiSelectWindow.inc +++ b/include/class_MultiSelectWindow.inc @@ -363,9 +363,9 @@ class MultiSelectWindow{ /* Homebutton is posted */ if($s_action=="home"){ - $ui= get_userinfo(); - $this->selectedBase=(preg_replace("/^[^,]+,/","",$ui->dn)); - $this->selectedBase=(preg_replace("/^[^,]+,/","",$this->selectedBase)); + $ui= get_userinfo(); + $base = get_base_from_people($ui->dn); + $this->selectedBase= $base; } /* Open selected department