From: hickert Date: Thu, 11 May 2006 09:41:54 +0000 (+0000) Subject: Fixed checkbox defaults X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a6b25cb8fa591192410cbf58d759bd184fef7844;p=gosa.git Fixed checkbox defaults git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3285 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_MultiSelectWindow.inc b/include/class_MultiSelectWindow.inc index 9a5c862ff..7ba7c89c7 100644 --- a/include/class_MultiSelectWindow.inc +++ b/include/class_MultiSelectWindow.inc @@ -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: ?>