Skip to:

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#2951 closed defect (bug) (fixed)

error in bbp_list_forums

Reported by: jyd44 Owned by: johnjamesjacoby
Milestone: 2.6 Priority: high
Severity: normal Version: 2.2
Component: Component - Forums Keywords: commit


Valid until bbpress 2.5.9:
When looping and creating the list of subforums, the $counts variable is not reset during the loop. And so, if you have a list of subforum like "sub_forum_1 type forum", "sub_forum_2 type category", etc.. the sub_forum_2 will be displayed with the counts for the sub_forum_1.

The solution is to add the line $counts=; at the begining of the loop.

Change History (2)

#1 @johnjamesjacoby
6 years ago

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

In 6024:

Forums: Updates to bbp_list_forums():

  • Always run filter, even over empty output
  • Only wrap output if not empty
  • Ensure that $count related variables are accurately reset during each loop iteration
  • Surrounding code clean-up

Fixes #2951.

#2 @johnjamesjacoby
6 years ago

  • Component changed from General to Component - Forums
  • Keywords commit added
  • Milestone changed from Awaiting Review to 2.6
  • Priority changed from normal to high
  • Version set to 2.2
Note: See TracTickets for help on using tickets.