Opened 16 years ago
Closed 15 years ago
#147 closed enhancement (fixed)
profile field order
Reported by: | ccromp | Owned by: | |
---|---|---|---|
Milestone: | 1.1 | Priority: | minor |
Severity: | Version: | ||
Component: | 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.
Change History (6)
#5
@
15 years ago
- Milestone set to 1.1
This is meant to be coming in v1.1/trunk: http://buddypress.org/about/roadmap
Not implemented, moving to future enhancement.