Opened 11 years ago
Closed 11 years ago
#2339 closed defect (bug) (fixed)
BuddyPress: Saving a group's settings wipes out forum tab
Reported by: | r-a-y | Owned by: | johnjamesjacoby |
---|---|---|---|
Milestone: | 2.4 | Priority: | normal |
Severity: | normal | Version: | 2.2 |
Component: | Extend - BuddyPress | Keywords: | has-patch |
Cc: |
Description
If you have a bbPress forum enabled in a BuddyPress group and attempt to save the BP group's admin settings, the forum tab will be removed.
Steps to reproduce:
- Make sure you have a BP group with forums enabled
- Navigate to the group's "Admin > Settings" page and click "Save".
- The group's "Forums" tab is now removed
This is due to BP explicitly looking for a 'group-show-forum' POST value in the group admin settings page:
https://buddypress.trac.wordpress.org/browser/tags/1.7.2/bp-groups/bp-groups-screens.php#L556
Because this value does not exist, the forum tab will be removed.
The easiest way to fix this is to add a hidden input 'group-show-forum' field on the group settings page.
In 5027: