Re: HTML_QuickForm_Controller and setDefaults
| From: | Alexey Borzov | Date: | Wed, 13 Sep 2006 16:38:53 +0000 |
| Subject: | Re: HTML_QuickForm_Controller and setDefaults | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25125@lists.php.net to get a copy of this message | ||
Hi,
Kim Fredenberg wrote:
I've gone through the code with a debugger and now I am positive that it is a bug in QF_Controller. When running special case code to check form-pages that weren't seen by users (lines 243-259 of Controller.php), such forms erroneously consider themselves submitted. Thus defaults for checkboxes and (probably) multiple selects are not used.Yes, exactly. Here is the relevant change: http://cvs.php.net/viewcvs.cgi/pear/HTML_QuickForm/QuickForm/select.php?r1=1.29&r2=1.30 I suspect the bug is actually somewhere in Controller (its isValid() method has a hackish special case for dealing with pages that were not seen by the user).Ok, I'll have o look at that too. Thanks.