cvs: pear /HTML_QuickForm/Elements group.php
| From: | Bertrand Mansion | Date: | Wed, 05 Dec 2001 09:04:33 +0000 |
| Subject: | cvs: pear /HTML_QuickForm/Elements group.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1466@lists.php.net to get a copy of this message | ||
mansion Wed Dec 5 04:04:33 2001 EDT
Modified files:
/pear/HTML_QuickForm/Elements group.php
Log:
Bugfix thanks to David Weingart :
If the group's _value property is not set, the default value is "".
This causes options and checkboxes with the value of 0 (zero) to be checked when they are not
supposed to be.
Changing _value property to null fixes the problem.
Index: pear/HTML_QuickForm/Elements/group.php
diff -u pear/HTML_QuickForm/Elements/group.php:1.2 pear/HTML_QuickForm/Elements/group.php:1.3
--- pear/HTML_QuickForm/Elements/group.php:1.2 Mon Nov 5 12:06:02 2001
+++ pear/HTML_QuickForm/Elements/group.php Wed Dec 5 04:04:29 2001
@@ -17,7 +17,7 @@
// | Bertrand Mansion <bmansion@mamasam.com> |
// +----------------------------------------------------------------------+
//
-// $Id: group.php,v 1.2 2001/11/05 17:06:02 mansion Exp $
+// $Id: group.php,v 1.3 2001/12/05 09:04:29 mansion Exp $
require_once("HTML/QuickForm/Elements/element.php");
@@ -38,7 +38,7 @@
* @since 1.0
* @access private
*/
- var $_value = "";
+ var $_value = null;
/**
* Name of the element