#2664 closed defect (bug) (no action required)
Group edition not editing associated forum - patch inside
Reported by: | aethril | Owned by: | |
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | Version: | ||
Component: | Groups | Keywords: | groups, forums |
Cc: |
Description
Hello,
My first ticket so I hope i'm doing it the right way.
When you're editing a group after it has been created, the associated forum is not edited.
Here is my solution (commented by at end of lines is the current stable version. 2 changes.)
File: bpgroups.php around line 1956
function groups_update_group_forum( $group_id ) {
$group = new BP_Groups_Group( $group_id );
if ( !$group->enable_forum )
return false;
$args = array(
'forum_id' => groups_get_groupmeta( $group_id, 'forum_id' ),'forum_id' => groups_get_groupmeta( $group, 'forum_id' ),
'forum_name' => $group->name,
'forum_desc' => $group->description ,'forum_desc' => $group->desc,
'forum_slug' => $group->slug
);
bp_forums_update_forum( apply_filters( 'groups_update_group_forum', $args ) );
}
Regards,
This is already fixed in [3082].
Try upgrading BuddyPress.