[buddypress-trac] [BuddyPress] #5118: Activities meta_query can load duplicates
buddypress-trac
noreply at wordpress.org
Sat Jul 27 18:09:58 UTC 2013
#5118: Activities meta_query can load duplicates
--------------------------+---------------------------
Reporter: imath | Owner: boonebgorges
Type: defect (bug) | Status: closed
Priority: high | Milestone: 1.8.1
Component: Activity | Version: 1.8
Severity: normal | Resolution: fixed
Keywords: |
--------------------------+---------------------------
Comment (by boonebgorges):
In [changeset:"7324"]:
{{{
#!CommitTicketReference repository="" revision="7324"
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:4>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list