Code

Fixed home switch
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 30 May 2006 10:38:12 +0000 (10:38 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 30 May 2006 10:38:12 +0000 (10:38 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3561 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_MultiSelectWindow.inc

index 542d8c18c8fab59debc3d8410f1ea8651cd3928c..df2e0ee37867836de5b68668dd33207bf327a215 100644 (file)
@@ -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