Skip to:

Opened 12 years ago

Closed 12 years ago

#4690 closed enhancement (fixed)

member groups count don't go through filter

Reported by: magnus78's profile magnus78 Owned by:
Milestone: 1.7 Priority: normal
Severity: normal Version:
Component: Groups Keywords: has-patch commit


When viewing a member page there is a tab like Groups (3).
The number shown can be wrong if one wants the group count filtered, e.g. to hide some special groups.

This is because a slightly incorrect function is called. groups_total_groups_for_user don't go through the filters, whereas bp_get_total_group_count_for_user does - in other respects is should e the same thing.

Attachments (1)

bptrac4690_member_groups_count.patch (670 bytes) - added by magnus78 12 years ago.
proposed fix

Download all attachments as: .zip

Change History (3)

#1 @DJPaul
12 years ago

  • Component changed from Core to Groups
  • Keywords commit added
  • Milestone changed from Awaiting Review to 1.7
  • Type changed from defect (bug) to enhancement

#2 @djpaul
12 years ago

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

(In [6653]) When adding groups to the main navigation, get the user's total groups count from bp_get_total_group_count_for_user() instead of groups_total_groups_for_user(). Fixes #4690, props magnus78

bp_get_total_group_count_for_user() is a more recent wrapper function for groups_total_groups_for_user() which runs the return value through a filter.

Note: See TracTickets for help on using tickets.