Skip to:
Content

BuddyPress.org

Opened 15 years ago

Closed 15 years ago

#515 closed defect (bug) (fixed)

Friends Activity Sorting Incorrectly and Returning Oldest Results

Reported by: cawoodm's profile cawoodm Owned by:
Milestone: Priority: minor
Severity: Version: 2.0
Component: Keywords:
Cc:

Description

bp-activity-classes.php (line 235) should sort by "record_date DESC" and not by "recorded_date". It is currently returning the oldest activity of friends and not the latest.

We're using the latest version of BP.
WRONG:
<code>$activities[$i]activity? = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$table_name} WHERE is_private = 0 ORDER BY date_recorded $limit_sql" ) );</code>
RIGHT:
<code>$activities[$i]activity? = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$table_name} WHERE is_private = 0 ORDER BY date_recorded DESC $limit_sql" ) );</code>

Change History (4)

#1 @apeatling
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [1147]) Fixed #515

#2 @apeatling
15 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

#3 @apeatling
15 years ago

The above fix actually fixed #514

#4 @apeatling
15 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [1148]) FIxes #515, previous commit fixed #514

Note: See TracTickets for help on using tickets.