From 33dfd09c2daeb9b60cb1ff172641b8192e6e2889 Mon Sep 17 00:00:00 2001 From: poltawski Date: Wed, 5 Dec 2007 14:29:55 +0000 Subject: [PATCH] MDL-12446 - profile signup page not respecting custom user profile field sortorder --- 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 3da81640533..d406ad3a438 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;