From a6b25cb8fa591192410cbf58d759bd184fef7844 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 11 May 2006 09:41:54 +0000 Subject: [PATCH] Fixed checkbox defaults git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3285 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_MultiSelectWindow.inc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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: ?> -- 2.30.2