Opened 12 years ago
Closed 11 years ago
#4827 closed enhancement (fixed)
groups_create_group() doesn't set total_member_count
Reported by: | rogercoathup | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 1.8 | Priority: | normal |
Severity: | minor | Version: | 1.7 |
Component: | Groups | Keywords: | has-patch |
Cc: |
Description
Groups created programmatically with groups_create_group() do not show in the Group Directory.
If called without a creator_id, the function sets up a default creator, but does not set total_member_count to 1 in the group meta table.
As a result, subsequent calls to construct the BP_Groups_Template fail to include the groups.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
It's always been this way, but I agree that it's kinda dumb. We should be doing this within the context of groups_create_group(). There shouldn't be backpat problems, because plugins currently doing it the old way will simply overwrite the total_member_count key.