Thanks Sean. I've committed your fix and updated the ticket.

Blair


On Fri, Jul 9, 2010 at 5:10 AM, Sean Coyne <[email protected]> wrote:

> bug reported at https://farcry.jira.com/browse/FC-2320
>
> getContentObjects has an argument "status" that should be a list of
> valid status values that should be allowed. However, when the query is
> built, the cfqueryparam tag does not have the list="true" attribute
> set so it gets passed to the DB as a single value, which will never
> match (ex: 'approved,pending,draft' vs. 'approved','pending','draft')
>
> Line 163 in fapi.cfc should be changed from
>
> <cfqueryparam cfsqltype="cf_sql_varchar" value="#arguments.status#" /
> >
>
> to
>
> <cfqueryparam cfsqltype="cf_sql_varchar" list="true"
> value="#arguments.status#" />
>
> --
> You received this message cos you are subscribed to "farcry-dev" Google
> group.
> To post, email: [email protected]
> To unsubscribe, email: 
> [email protected]<farcry-dev%[email protected]>
> For more options: http://groups.google.com/group/farcry-dev
> --------------------------------
> Follow us on Twitter: http://twitter.com/farcry

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry

Reply via email to