Merge branch 'MDL-87406-501' of https://github.com/ericmerrill/moodle into MOODLE_501_STABLE

This commit is contained in:
Safat
2026-01-07 16:27:32 +11:00
+3 -1
View File
@@ -2241,7 +2241,7 @@ function xmldb_main_upgrade($oldversion) {
FROM {customfield_data} d
JOIN {customfield_field} f ON d.fieldid = f.id
JOIN {customfield_category} c ON f.categoryid = c.id";
$records = $DB->get_records_sql($sql);
$records = $DB->get_recordset_sql($sql);
foreach ($records as $r) {
$DB->update_record('customfield_data', (object)[
@@ -2252,6 +2252,8 @@ function xmldb_main_upgrade($oldversion) {
]);
}
$records->close();
// Define table customfield_shared to be created.
$table = new xmldb_table('customfield_shared');