Opened 14 years ago
Closed 14 years ago
#4690 closed enhancement (fixed)
member groups count don't go through filter
| Reported by: | magnus78 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.7 |
| Component: | Groups | Version: | |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: |
Description
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)
Change History (3)
#1
@
14 years ago
- Component Core → Groups
- Keywords commit added
- Milestone Awaiting Review → 1.7
- Type defect (bug) → enhancement
#2
@
14 years ago
- Resolution → fixed
- Status new → 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
proposed fix