[Solar-talk] Using validateInList filter in Model

Antti Holvikari anttih at gmail.com
Sun Feb 10 16:13:17 CST 2008


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>


More information about the Solar-talk mailing list