- Timestamp:
- 04/25/2019 02:42:31 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/screens/single/admin/group-settings.php
r11923 r12381 41 41 return false; 42 42 43 $group_id = bp_get_current_group_id(); 44 43 45 /* 44 46 * Save group types. … … 46 48 * Ensure we keep types that have 'show_in_create_screen' set to false. 47 49 */ 48 $current_types = bp_groups_get_group_type( bp_get_current_group_id(), false );50 $current_types = bp_groups_get_group_type( $group_id, false ); 49 51 $current_types = array_intersect( bp_groups_get_group_types( array( 'show_in_create_screen' => false ) ), (array) $current_types ); 50 52 if ( isset( $_POST['group-types'] ) ) { … … 52 54 53 55 // Set group types. 54 bp_groups_set_group_type( bp_get_current_group_id(), $current_types );56 bp_groups_set_group_type( $group_id, $current_types ); 55 57 56 58 // No group types checked, so this means we want to wipe out all group types. … … 64 66 65 67 // Set group types. 66 bp_groups_set_group_type( bp_get_current_group_id(), $current_types );68 bp_groups_set_group_type( $group_id, $current_types ); 67 69 } 68 70 69 if ( ! groups_edit_group_settings( $_POST['group-id'], $enable_forum, $status, $invite_status ) ) {71 if ( ! groups_edit_group_settings( $group_id, $enable_forum, $status, $invite_status ) ) { 70 72 bp_core_add_message( __( 'There was an error updating group settings. Please try again.', 'buddypress' ), 'error' ); 71 73 } else {
Note: See TracChangeset
for help on using the changeset viewer.