diff --git src/bp-xprofile/bp-xprofile-admin.php src/bp-xprofile/bp-xprofile-admin.php
index 08fa7d9..7f3f91c 100644
|
|
function xprofile_ajax_reorder_fields() { |
492 | 492 | |
493 | 493 | $field_group_id = $_POST['field_group_id']; |
494 | 494 | |
495 | | foreach ( (array) $order['field'] as $position => $field_id ) { |
| 495 | foreach ( (array) $order['draggable_field'] as $position => $field_id ) { |
496 | 496 | xprofile_update_field_position( (int) $field_id, (int) $position, (int) $field_group_id ); |
497 | 497 | } |
498 | 498 | } |
… |
… |
function xprofile_admin_field( $admin_field, $admin_group, $class = '' ) { |
530 | 530 | |
531 | 531 | $field = $admin_field; ?> |
532 | 532 | |
533 | | <fieldset class="sortable<?php echo ' ' . $field->type; if ( !empty( $class ) ) echo ' ' . $class; ?>"> |
| 533 | <fieldset id="draggable_field_<?php echo esc_attr( $field->id ); ?>"class="sortable<?php echo ' ' . $field->type; if ( !empty( $class ) ) echo ' ' . $class; ?>"> |
534 | 534 | <legend> |
535 | 535 | <span> |
536 | 536 | <?php bp_the_profile_field_name(); ?> |