Ticket #147 (new enhancement)

Opened 2 months ago

Last modified 3 weeks ago

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.

Change History

Changed 4 weeks ago by apeatling

  • priority changed from major to minor

Changed 3 weeks ago by apeatling

  • type changed from defect to enhancement

Not implemented, moving to future enhancement.

Note: See TracTickets for help on using tickets.