Skip to:
Content

bbPress.org

#2094 closed defect (bug) (fixed)

BuddyPress: 'Forum' tab isn't shown after a new group is created with a forum

Reported by:r-a-y's profile r-a-yOwned by:
Milestone:2.3Priority:normal
Severity:normalVersion:2.2.2
Component:Extend - BuddyPressKeywords:commit
Cc:jmdodd@…

Description

During the group creation process, if you create a group with a forum, the 'Forum' tab does not show up.

I've attached a that addresses this.

You could probably change:

$checked = bp_get_new_group_enable_forum() || groups_get_groupmeta( bp_get_current_group_id(), 'forum_id' );

to:

$checked = groups_get_groupmeta( bp_get_current_group_id(), 'forum_id' );

or filter 'bp_get_new_group_enable_forum' to do the group meta 'forum_id' check as well.

Let me know what you think.

Attachments (1)

2094.01. (1.0 KB) - added by r-a-y 12 years ago.

Download all attachments as: .zip

Change History (5)

@r-a-y
12 years ago

#1 @johnjamesjacoby
12 years ago

  • Keywords commit added; has- removed
  • Milestone changed from Awaiting Review to 2.3

Confirmed and valid. could be cleaned up by moving the (bool) type cast around, but works as intended.

#2 follow-up: @jmdodd
12 years ago

  • Cc jmdodd@… added

#3 in reply to: ↑ 2 @jmdodd
12 years ago

Disregard; imported forums not being associated with groups looks like a different issue.

#4 @johnjamesjacoby
12 years ago

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

(In [4602]) BuddyPress Groups:

  • In maybe_unset_forum_menu(), also check for current groupmeta.
  • Props r-a-y.
  • Fixes #2094.
Note: See TracTickets for help on using tickets.