Bug in Low Reorder module: defined set always empty
Hi,
It seems that I found a bug in Low Reorder module.
In "Edit Set" form there is "Channels" field allowing to select one or more channels.
In "Edit Set" form there is also field "Search fields" allowing to select a field one or more fields and to enter their values.
Since it is possible to select several channels, it seems that it should be possible to select fields belonging to different channels. And indeed, the form allows to select fields belonging to different channels. But after selection of belonging to different channels the set is always empty.
E.g. I have 2 channels: "Blog" and "PDFs". The first has the field "blog_reorder", the second - field "pdfs_reorder". Both fields can have values "yes" or "no". I need reorder set which would include entries from both channels having "yes" in these fields. The "Edit Set" form allows me to define such set, but the set is always empty.
It seems that there is a bug in the logic of this module: when fields selected using "Search fields" belong to different channels the operator "AND" is being used instead of "OR".
Replies
Low 2 Jan 2013 15:02
Actually, I wouldn't consider this a bug, as it simply replicates what you'd expect in the native channel:entries tag. If you add search:field_one="foo" and search:field_two="bar" to that, you'd also expect the operator between them to be AND, not OR.
However, I see your point, and will treat this as a feature request.