Skip to:

Opened 10 years ago

Closed 10 years ago

Last modified 5 years ago

#2552 closed defect (bug) (fixed)

Recent Topics Widget - Show most popular doesn't sort correctly

Reported by: cmmarslender's profile cmmarslender Owned by:
Milestone: 2.6 Priority: normal
Severity: normal Version: 2.5.3
Component: API - Widgets Keywords:
Cc: cmmarslender


The recent topics widget does not pull 'popular' topics in the correct order. The query is set up to pull meta_value '_bbp_reply_count' and order by 'meta_value' - It should probably be meta_value_num to correctly handle the counts as numbers - otherwise you get weird ordering because the numbers are not treated as such.

Attachments (1)

2522.diff (507 bytes) - added by cmmarslender 10 years ago.

Download all attachments as: .zip

Change History (4)

10 years ago

#1 @cmmarslender
10 years ago

  • Keywords has-patch added

#2 @netweb
10 years ago

  • Keywords has-patch removed
  • Milestone changed from Awaiting Review to 2.6
  • Resolution set to fixed
  • Status changed from new to closed
  • Version set to 2.5.3

Thanks @cmmarslender

In r5297:

  • Add meta_type hinting to widget queries. See #2554.
  • Use orderby -> meta_value_num in Popular Widget. See #2552

#3 @johnjamesjacoby
5 years ago

Assigning all closed & unassigned tickets in the 2.6 milestone to myself.

Note: See TracTickets for help on using tickets.