Code

Made current main base set up more early
[gosa.git] / include / class_MultiSelectWindow.inc
index 2fb9a277e981c2d8ddc3e62efdb2920ba9d68830..6cb52c0f6651490c0c0d14a20502b9fd1726cc26 100644 (file)
@@ -45,6 +45,11 @@ class MultiSelectWindow{
     $this->HideFilterPart = $bool;
   }
 
+  function SetHeight($height)
+  { 
+    $this->DivHeight=$height;
+  }
+
        /* Adds a regex input field to the current dialog */
        function AddRegex($name,$string,$value,$conn,$image="images/search.png")
        {
@@ -75,11 +80,6 @@ class MultiSelectWindow{
                $this->filterName                       = $filterName;
 
                /* Set default base, to users base  */
-    $ui   = get_userinfo();
-    $base = get_base_from_people($ui->dn);
-               if(!isset($_SESSION['CurrentMainBase'])){
-                       $_SESSION['CurrentMainBase'] = $base;
-               }
                $this->selectedBase = $_SESSION['CurrentMainBase'];
 
     /* Check default values for SaveAdditionalVars */