Re: QuickForm: upgraded last night, now rule requiring a date field throws error
| From: | l Burnerheimerton | Date: | Wed, 10 Aug 2005 09:58:09 +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-20346@lists.php.net to get a copy of this message | ||
--- Alexey Borzov <borz_off@cs.msu.su> wrote:
> 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
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
I 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.
Being the ONLY thing that changed was the upgrade, I
conclude that something changed in the QuickForm,
which is a logical conclusion since it was an upgrade
- something did change.
I say this with the most repsct for what the creators
of the packages do because I sincerely appreciate it.
In the future I will post questions before adding a
bug report to verify it is indeed a bug.
Thank you for your reply.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com