Skip to:
Content

BuddyPress.org

Ticket #5425: 5425.02.diff

File 5425.02.diff, 751 bytes (added by imath, 11 years ago)
  • bp-xprofile/bp-xprofile-admin.php

    diff --git bp-xprofile/bp-xprofile-admin.php bp-xprofile/bp-xprofile-admin.php
    index 99dcfd8..64bfca5 100644
    class BP_XProfile_User_Admin { 
    607607                                        bp_core_redirect( $redirect_to );
    608608                                }
    609609
     610                                // Build a comma separated list out of posted field_ids
     611                                $merge_ids = implode( ',', $_POST['field_ids'] );
     612
    610613                                // Explode the posted field IDs into an array so we know which fields have been submitted
    611                                 $posted_field_ids = wp_parse_id_list( $_POST['field_ids'] );
     614                                $posted_field_ids = wp_parse_id_list( $merge_ids );
    612615                                $is_required      = array();
    613616
    614617                                // Loop through the posted fields formatting any datebox values then validate the field