Code

Added fix for regex session storage
[gosa.git] / include / class_MultiSelectWindow.inc
index 89dd459c833f3cbe20cf60656c103369b5ce113a..00d49d6d57c74d175f18172fc0a8df16cf8f8a19 100644 (file)
@@ -35,23 +35,21 @@ class MultiSelectWindow{
 
   var $SaveAdditionalVars = array();  // Additional Post vars to store 
 
-
        function ClearElementsList()
        {
                $this->array_Elements = array();
        }
 
-  function ForceMaximumDivHeight($height = "")
-  {
-    $this->DivHeight = $height;
-  }
-
-
   function HideFilterPart($bool = true)
   {
     $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")
        {
@@ -81,12 +79,6 @@ class MultiSelectWindow{
                $this->CloseButtonString        = _("Close");
                $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 */
@@ -484,6 +476,7 @@ class MultiSelectWindow{
                                        $val = preg_replace("/\*\**/","*",$val);
                                        $this->array_Regexes[$key]['value'] = $val;
                                        $this->$box['name'] = $val;
+          $_SESSION['MultiDialogFilters'][$this->filterName][$box['name']] =  $val;
                                }
                        }
                }