Re: QuickForm: upgraded last night, now rule requiring a date field throws error
| From: | Alexey Borzov | Date: | Wed, 10 Aug 2005 10:09:31 +0000 |
| Subject: | Re: QuickForm: upgraded last night, now rule requiring a date field throws error | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20347@lists.php.net to get a copy of this message | ||
Hi,
l Burnerheimerton wrote:
Once again, it didn't work before upgrade: your date field wasn't validated. There was no warning indeed, as before 3.2.5 the value (array in case of the date element) was implicitly converted to string and in 3.2.5 the conversion became explicit: http://cvs.php.net/diff.php/pear/HTML_QuickForm/QuickForm/Rule/Required.php?r1=1.3&r2=1.4&ty=hNothing changed: you still need to use addGroupRule() if you want the rule to actually *work* (search the archives, there was a discussion recently). And you also need to get a clue before opening such "bug reports": http://pear.php.net/bugs/bug.php?id=5043I will look into addGroupRule(). However, 1 - It worked before the upgrade 2 - I upgraded QuickForm but did NOT change any code 3 - Then it did not work.