We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14311bb commit c2338b3Copy full SHA for c2338b3
db/upgrade.php
@@ -422,8 +422,9 @@ function xmldb_cms_upgrade($oldversion) {
422
$sql = "SELECT f.*, ctx.id as ctxid
423
FROM {files} f
424
JOIN {customfield_data} cfd ON cfd.id = f.itemid
425
- JOIN {customfield_field} cff ON cff.id = cfd.fieldid AND cff.shortname = 'overview'
+ JOIN {customfield_field} cff ON cff.id = cfd.fieldid
426
JOIN {cms} cms ON cms.id = cfd.instanceid
427
+ JOIN {cms_types} cmst ON cmst.id = cms.typeid AND cmst.datasources LIKE '%fields%'
428
JOIN {course_modules} cm ON cm.instance = cms.id
429
JOIN {modules} m ON m.id = cm.module AND m.name = 'cms'
430
JOIN {context} ctx ON ctx.instanceid = cm.id AND ctx.contextlevel = :modulecontextlevel
0 commit comments