[buddypress-trac] [BuddyPress] #2664: Group edition not editing associated forum - patch inside
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Sun Oct 3 05:43:29 UTC 2010
#2664: Group edition not editing associated forum - patch inside
---------------------+------------------------------------------------------
Reporter: aethril | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 1.3
Component: Groups | Keywords: groups, forums
---------------------+------------------------------------------------------
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,
--
Ticket URL: <http://trac.buddypress.org/ticket/2664>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list