[buddypress-trac] [BuddyPress Trac] #5824: Groups Meta Query, inconsistent results considering the meta query args
buddypress-trac
noreply at wordpress.org
Wed Aug 20 17:25:41 UTC 2014
#5824: Groups Meta Query, inconsistent results considering the meta query args
--------------------------+------------------
Reporter: imath | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: 2.1
Component: Groups | Version: 1.8
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------
Changes (by imath):
* keywords: needs-unit-tests => has-patch
Comment:
Ok, i think we don't need to do the foreach/preg_replace part.
In 5824.02.patch i simply join the {{{g.id =
wp_bp_groups_groupmeta[_aliases].group_id}}} clauses (one for each clauses
of the meta query) at the end of the {{{$meta_sql['where']}}} and it seems
to fix the issue.
Ran the {{{phpunit --group group_meta_query}}} with success including the
one i've added in the patch ;)
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5824#comment:8>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list