Skip to:
Content

BuddyPress.org

Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#416 closed defect (bug) (fixed)

$_POST returns nothing after the groups_custom_group_fields_editable

Reported by: nicolagreco's profile nicolagreco Owned by: nicolagreco's profile nicolagreco
Milestone: Priority: critical
Severity: Version:
Component: Keywords:
Cc:

Description

here is my function:

function show_post() {
$text = print_r ($_POST,true);
echo $text;
}
add_action( 'groups_custom_group_fields_editable', 'show_post' );

the $text return me Array ( )

so i think that there is something that make $_POST as null before!

Please remove that!

Change History (3)

#1 @nicolagreco
16 years ago

here it's the bug for me

bp-groups.php

617	                        if ( isset( $_POST['save'] ) ) {
618	                                if ( !groups_edit_base_group_details( $_POST['group-id'], $_POST['group-name'], $_POST['group-desc'], $_POST['group-news'], (int)$_POST['group-notify-members'] ) ) {
619	                                        bp_core_add_message( __( 'There was an error updating group details, please try again.', 'buddypress' ), 'error' );
620	                                } else {
621	                                        bp_core_add_message( __( 'Group details were successfully updated.', 'buddypress' ) );
622	                                }
623	                                bp_core_redirect( site_url() . '/' . $bp['current_component'] . '/' . $bp['current_item'] . '/admin/edit-details' );
624	                        }
625	
626	                        do_action( 'groups_screen_group_admin_edit_details', $group_obj->id );

the $_POST is = NULL because it redirect on line 623 and it can't load $_POST because groups_screen_group_admin_edit_details because it is after the redirect

#2 @apeatling
16 years ago

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

Fixed in r962

#3 @(none)
15 years ago

  • Milestone Groups 1.0 deleted

Milestone Groups 1.0 deleted

Note: See TracTickets for help on using tickets.