From adc82791a0770d3e5bff1e80182dad5a2284bc98 Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Wed, 14 Jan 2009 10:07:39 +0000 Subject: [PATCH] MDL-17048: Added additional check for non-visible fields in signup page. Merged from STABLE_19 --- 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 a89bbae105..f644332e32 100644 --- a/user/profile/lib.php +++ b/user/profile/lib.php @@ -424,7 +424,7 @@ function profile_signup_fields(&$mform) { $sql = "SELECT uf.id as fieldid, ic.id as categoryid, ic.name as categoryname, uf.datatype FROM {user_info_field} uf JOIN {user_info_category} ic - ON uf.categoryid = ic.id AND uf.signup = 1 + ON uf.categoryid = ic.id AND uf.signup = 1 AND uf.visible<>0 ORDER BY ic.sortorder ASC, uf.sortorder ASC"; if ( $fields = $DB->get_records_sql($sql)) { -- 2.39.5