Skip to content

Commit

Permalink
Merge branch 'wip-MDL-57649-32-fix2' of git://github.com/abgreeve/moo…
Browse files Browse the repository at this point in the history
…dle into MOODLE_32_STABLE
  • Loading branch information
andrewnicols committed Jul 20, 2017
2 parents 39bf55d + 4a162dc commit 4fc7dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/lesson/db/upgrade.php
Expand Up @@ -393,7 +393,7 @@ function xmldb_lesson_upgrade($oldversion) {
if ($oldversion < 2016120501) {

// Delete orphaned lesson answer and response files.
$sql = "SELECT DISTINCT f.*
$sql = "SELECT DISTINCT f.contextid, f.component, f.filearea, f.itemid
FROM {files} f
LEFT JOIN {lesson_answers} la ON f.itemid = la.id
WHERE component = :component
Expand Down

0 comments on commit 4fc7dd6

Please sign in to comment.