From: poltawski Date: Wed, 5 Dec 2007 14:33:10 +0000 (+0000) Subject: MDL-12446 - profile signup page not respect custom user profile field X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bbebbc0c57d47077832849cd75209f1c766b060c;p=moodle.git MDL-12446 - profile signup page not respect custom user profile field sortorder Merged from MOODLE_19_STABLE --- 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;