Code

Fixed checkbox defaults
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 May 2006 09:41:54 +0000 (09:41 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 May 2006 09:41:54 +0000 (09:41 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3285 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_MultiSelectWindow.inc

index 9a5c862ff049c1b6d438d6596e4f4dfbc25a6fb0..7ba7c89c777d1ae9401d4605269172024a5a6f4a 100644 (file)
@@ -33,6 +33,7 @@ class MultiSelectWindow{
        var $DepartmentsAdded           = false;
        var $selectedBase               = "";
 
+
        function ClearElementsList()
        {
                $this->array_Elements = array();
@@ -154,10 +155,12 @@ class MultiSelectWindow{
                        }else{
                                $arr['default'] = $default;
                        }
-                       $arr['name']    = $name;
-                       $arr['string']  = $string;
-                       $arr['value']   = $value;
-                       $arr['enabled'] = true;
+                       $arr['name']          = $name;
+                       $arr['string']      = $string;
+                       $arr['value']         = $value;
+                       $arr['enabled']     = true;
+
+      $this->$name = $default;
                }
                $this->array_Checkboxes[] = $arr;
        }
@@ -376,6 +379,7 @@ class MultiSelectWindow{
                                }
                        }
                }
+
                if(isset($_POST['MultiSelectWindow'.$this->filterName])){
 
                        /* Check posts from checkboxes 
@@ -503,5 +507,5 @@ class MultiSelectWindow{
                }
        }
 }
-
+// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>