[Solar-talk] Using validateInList filter in Model
Raymond Kolbe
rkolbe at gmail.com
Sun Feb 10 19:25:02 CST 2008
Because when I use Solar_Form_Load_Model (taking advantage of the auto load
feature for forms) it gives me an error about missing an array. If I setup
the filter like in my last email, I get the values in the select box just
fine but when I submit the form, I get an invalid on the select box....most
likely because the value NULL does not equal 1, 2, .... 9, 10.
On Feb 10, 2008 5:13 PM, Antti Holvikari <anttih at gmail.com> wrote:
> On Feb 10, 2008 10:59 PM, Raymond Kolbe <rkolbe at gmail.com> wrote:
> > So, I figured that using $_addFilter('priority', 'validateInList', NULL,
> > array(1, 2, 3...,9, 10); would work except that the NULL in there is the
> > first arg passed to validateInList....a problem as NULL will never ==
> int or
> > anything for that matter.
>
> I'm not sure I understand what your problem is. Why doesn't this work:
>
> $_addFilter('priority', 'validateInList', array(1, 2, 3...,9, 10));
>
>
> --
> Antti Holvikari <http://anttih.com>
> _______________________________________________
> Solar-talk mailing list
> Solar-talk at lists.solarphp.com
> http://mailman-mail3.webfaction.com/listinfo/solar-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman-mail3.webfaction.com/pipermail/solar-talk/attachments/20080210/91300b68/attachment.html
More information about the Solar-talk
mailing list