mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-31914 db fix - cannot use table aliases on DELETE statements. Credit goes to Andrew Nicols (LUNS).
This commit is contained in:
parent
b5dd45511d
commit
352476d131
1 changed files with 1 additions and 1 deletions
|
@ -7042,7 +7042,7 @@ FROM
|
||||||
WHERE NOT EXISTS (
|
WHERE NOT EXISTS (
|
||||||
SELECT 'x' FROM {course_modules}
|
SELECT 'x' FROM {course_modules}
|
||||||
WHERE {course_modules}.id = {course_completion_criteria}.moduleinstance)
|
WHERE {course_modules}.id = {course_completion_criteria}.moduleinstance)
|
||||||
AND cc.criteriatype = ".COMPLETION_CRITERIA_TYPE_ACTIVITY;
|
AND {course_completion_criteria}.criteriatype = ".COMPLETION_CRITERIA_TYPE_ACTIVITY;
|
||||||
}
|
}
|
||||||
$DB->execute($sql);
|
$DB->execute($sql);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue