Ticket #147 (new enhancement)
profile field order
| Reported by: | ccromp | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Version: | Keywords: | ||
| Cc: |
Description
Re-ordering the profile fields by dragging and dropping in the admin menu doesn't stick.
I ended up manually editing the field_order value for the fields in the wp_bp_xprofile_fields table, and then discovered that this value isn't even used.
It turns out that the order is hard-coded to just be the ID of the field... so they will always display in the order entered.
So I edited line 87 of bp-xprofile-classes.php to change the order by statement to "ORDER BY field_order asc, id asc". This fixed the admin area field order.
I also changed line 899 of the same file so the order by statement now reads "ORDER BY f.field_order asc, f.id". This fixed the signup form.
