views_or is a fantastic module - something that would have been nice to have had in core views. I'm currently using it on a site I am building, in order to implement a complex view.

My view has a requirement for arguments to be "optional" - i.e. views "wildcard" handling for arguments. However, as I was developing my view, it became painfully obvious to me that wildcards are not working in the current dev version of this module.

Attached is a patch that I have successfully applied to get wildcards working for me. Hope it can help someone else in need.

Note that when a wildcard is provided for one of the multiple arguments in an OR clause, the entire OR clause is removed from the query. This is because the resultant OR clause would be something like "WHERE 1 OR {some field} = {non-wildcard}", which can be reduced to "WHERE 1", or removed all together.

CommentFileSizeAuthor
wildcard_argument.patch3.82 KBbrettbirschbach

Comments

darren oh’s picture

Status: Active » Needs review