cvs: pear /HTML_QuickForm/QuickForm checkbox.php
| From: | Jason Rust | Date: | Wed, 05 Jun 2002 00:01:49 +0000 |
| Subject: | cvs: pear /HTML_QuickForm/QuickForm checkbox.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4414@lists.php.net to get a copy of this message | ||
jrust Tue Jun 4 20:01:49 2002 EDT
Modified files:
/pear/HTML_QuickForm/QuickForm checkbox.php
Log:
Fixed small bug where setConstant was not being set after a form submission
Index: pear/HTML_QuickForm/QuickForm/checkbox.php
diff -u pear/HTML_QuickForm/QuickForm/checkbox.php:1.3
pear/HTML_QuickForm/QuickForm/checkbox.php:1.4
--- pear/HTML_QuickForm/QuickForm/checkbox.php:1.3 Tue Apr 16 04:51:14 2002
+++ pear/HTML_QuickForm/QuickForm/checkbox.php Tue Jun 4 20:01:47 2002
@@ -17,7 +17,7 @@
// | Bertrand Mansion <bmansion@mamasam.com> |
// +----------------------------------------------------------------------+
//
-// $Id: checkbox.php,v 1.3 2002/04/16 08:51:14 mansion Exp $
+// $Id: checkbox.php,v 1.4 2002/06/05 00:01:47 jrust Exp $
require_once("HTML/QuickForm/input.php");
@@ -234,11 +234,8 @@
$this->setChecked($arg);
}
break;
- case 'setDefault':
- $vars = $caller->getSubmitValues();
- if (count($vars) == 0) {
- $this->setChecked($arg);
- }
+ case 'setConstant':
+ $this->setChecked($arg);
break;
case 'setGroupValue':
$this->setChecked($arg);