MDL-12945 disabled mods are not returned from get_course_mods() anymore, the results are used in scheduled backup and other parts that do not expect disabled mods; merged from MOODLE_19_STABLE
This commit is contained in:
+1
-1
@@ -1587,7 +1587,7 @@ function get_course_mods($courseid) {
|
||||
FROM {$CFG->prefix}modules m,
|
||||
{$CFG->prefix}course_modules cm
|
||||
WHERE cm.course = ".intval($courseid)."
|
||||
AND cm.module = m.id ");
|
||||
AND cm.module = m.id AND m.visible = 1"); // no disabled mods
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user