Re: QuickForm: upgraded last night, now rule requiring a date field throws error

From: Date: Wed, 10 Aug 2005 06:19:32 +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-20344@lists.php.net to get a copy of this message
Hi, l Burnerheimerton wrote:
I upgraded QuickForm last night. Today, I finally narrowed the error down to a rule for requiring the date to be completed. This rule worked in the previous version. Here's the rule: $form->addRule('dateOnline', 'Please add a DATE', 'required', null, 'server'); Here's the error it throws: Notice: Array to string conversion in c:\pear\lib\HTML\QuickForm\Rule\Required.php on line 39 Did something change in the way I am supposed to write a required rule for date fields?
Nothing 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=5043

« previous php.pear.general (#20344) next »