Skip to:

Opened 15 years ago

Closed 15 years ago

#147 closed enhancement (fixed)

profile field order

Reported by: ccromp's profile ccromp Owned by:
Milestone: 1.1 Priority: minor
Severity: Version:
Component: Keywords:


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,". This fixed the signup form.

Change History (6)

#1 @apeatling
15 years ago

  • Priority changed from major to minor

#2 @apeatling
15 years ago

  • Type changed from defect to enhancement

Not implemented, moving to future enhancement.

#3 @apeatling
15 years ago

  • Milestone set to Extended Profiles 1.1

#4 @(none)
15 years ago

  • Milestone Extended Profiles 1.1 deleted

Milestone Extended Profiles 1.1 deleted

#5 @DJPaul
15 years ago

  • Milestone set to 1.1

This is meant to be coming in v1.1/trunk:

#6 @apeatling
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed


Note: See TracTickets for help on using tickets.