Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/03/2010 10:18:25 AM (17 years ago)
Author:
johnjamesjacoby
Message:

Allow xprofile fields to be moved between groups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-admin.php

    r2799 r2801  
    6464                                foreach ( $groups as $group ) { ?>
    6565
    66                                                 <table id="group_<?php echo $group->id;?>" class="widefat field-group sortable">
     66                                                <table id="<?php echo $group->id;?>" class="widefat field-group sortable">
    6767                                                        <thead>
    6868                                                                <tr class="grabber">
    … …  
    309309
    310310        parse_str( $_POST['field_order'], $order );
     311        $field_group_id = $_POST['field_group_id'];
    311312
    312313        foreach ( (array) $order['field'] as $position => $field_id )
    313                 xprofile_update_field_position( (int) $field_id, (int) $position );
     314                xprofile_update_field_position( (int) $field_id, (int) $position, (int) $field_group_id );
    314315
    315316}
Note: See TracChangeset for help on using the changeset viewer.