mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
WHERE '1' is not cross-db. MDL-8280
This commit is contained in:
parent
5cd2273fe1
commit
c4b654bc3c
@ -216,7 +216,7 @@
|
||||
}
|
||||
|
||||
/// Update the custom user fields
|
||||
if ($categories = get_records_select('user_info_category', '1', 'sortorder ASC')) {
|
||||
if ($categories = get_records_select('user_info_category', '', 'sortorder ASC')) {
|
||||
foreach ($categories as $category) {
|
||||
|
||||
if ($fields = get_records_select('user_info_field', "categoryid=$category->id", 'sortorder ASC')) {
|
||||
|
@ -319,7 +319,7 @@ class user_edit_form extends moodleform {
|
||||
$mform->hardFreeze($freezefields);
|
||||
|
||||
/// Next the customisable categories
|
||||
if ($categories = get_records_select('user_info_category', '1', 'sortorder ASC')) {
|
||||
if ($categories = get_records_select('user_info_category', '', 'sortorder ASC')) {
|
||||
foreach ($categories as $category) {
|
||||
if ($fields = get_records_select('user_info_field', "categoryid=$category->id", 'sortorder ASC')) {
|
||||
|
||||
@ -395,7 +395,7 @@ class user_edit_form extends moodleform {
|
||||
|
||||
/// And now we validate the custom data fields
|
||||
|
||||
if ($categories = get_records_select('user_info_category', '1', 'sortorder ASC')) {
|
||||
if ($categories = get_records_select('user_info_category', '', 'sortorder ASC')) {
|
||||
foreach ($categories as $category) {
|
||||
|
||||
if ($fields = get_records_select('user_info_field', "categoryid=$category->id", 'sortorder ASC')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user