Closed (won't fix)
Project:
Drupal core
Version:
5.5
Component:
profile.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 Jan 2008 at 23:49 UTC
Updated:
22 Jun 2011 at 00:18 UTC
When you try to order input fields by weight, nothing happens.
Fields get default order from executed query.
FIX:
Add SQL "ORDER BY" in db_query sentence inside function profile_load_profile().
Old query:
$result = db_query('SELECT f.name, f.type, v.value FROM {profile_fields} f INNER JOIN {profile_values} v ON f.fid = v.fid WHERE uid = %d', $user->uid);
New query:
$result = db_query('SELECT f.name, f.type, v.value FROM {profile_fields} f INNER JOIN {profile_values} v ON f.fid = v.fid WHERE uid = %d ORDER BY f.weight ASC', $user->uid);
Comments
Comment #1
drummI tested this and it seems to work for both the form (user/#/edit/...) and user profile page (user/#). What is the URL of the page you are looking at?
What theme are you using? Any modules which might be involved?
Comment #2
dpearcefl commentedConsidering the time elapsed between now and the last comment plus the fact that D5 is no longer supported, I am closing this ticket.