[buddypress-trac] [BuddyPress] #5118: Activities meta_query can load duplicates
buddypress-trac
noreply at wordpress.org
Fri Jul 26 18:33:52 UTC 2013
#5118: Activities meta_query can load duplicates
--------------------------+---------------------------
Reporter: imath | Owner: boonebgorges
Type: defect (bug) | Status: closed
Priority: high | Milestone: 1.9
Component: Activity | Version: 1.8
Severity: normal | Resolution: fixed
Keywords: |
--------------------------+---------------------------
Changes (by boonebgorges):
* owner: => boonebgorges
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"7318"]:
{{{
#!CommitTicketReference repository="" revision="7318"
Enforce DISTINCT in BP_Activity_Activity::get() queries
Previously, we've never really needed to state DISTINCT explicitly in
BP_Activity_Activity::get(), because the kinds of queries we ran would
naturally result in the exclusion of duplicates. The introduction of
the meta_query parameter in 1.8 - and in particular, the ability to
introduce more than one meta_query clause separated by the inclusive
OR relation - uncovered the bug, as single activity items were matching
more than one clause in the meta_query and thus being returned in the
results more than once.
Fixes #5118
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5118#comment:2>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list