Code

Use userbase as dfault base for divlist management dialogs
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 May 2006 08:07:52 +0000 (08:07 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 May 2006 08:07:52 +0000 (08:07 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3449 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_MultiSelectWindow.inc

index cee65eec483a4078d425a69ff474e225ae2b3190..898aad6eee628c9859e265f42718aece1b16cafc 100644 (file)
@@ -67,9 +67,11 @@ class MultiSelectWindow{
                $this->CloseButtonString        = _("Close");
                $this->filterName                       = $filterName;
 
-               /* Set default base */
+               /* Set default base, to users base  */
+    $ui   = get_userinfo();
+    $base = get_base_from_people($ui->dn);
                if(!isset($_SESSION['CurrentMainBase'])){
-                       $_SESSION['CurrentMainBase'] = $this->config->current['BASE'];
+                       $_SESSION['CurrentMainBase'] = base;
                }
                $this->selectedBase = $_SESSION['CurrentMainBase'];