From bbebbc0c57d47077832849cd75209f1c766b060c Mon Sep 17 00:00:00 2001 From: poltawski Date: Wed, 5 Dec 2007 14:33:10 +0000 Subject: [PATCH] MDL-12446 - profile signup page not respect custom user profile field sortorder Merged from MOODLE_19_STABLE --- user/profile/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/profile/lib.php b/user/profile/lib.php index 3da8164053..d406ad3a43 100644 --- a/user/profile/lib.php +++ b/user/profile/lib.php @@ -384,7 +384,7 @@ function profile_display_fields($userid) { function profile_signup_fields(&$mform) { global $CFG; - if ($fields = get_records('user_info_field', 'signup', 1)) { + if ($fields = get_records('user_info_field', 'signup', 1, 'sortorder ASC')) { foreach ($fields as $field) { require_once($CFG->dirroot.'/user/profile/field/'.$field->datatype.'/field.class.php'); $newfield = 'profile_field_'.$field->datatype; -- 2.39.5