Merge branch 'MDL-71324-master' of git://github.com/lucaboesch/moodle

This commit is contained in:
Jun Pataleta
2021-04-19 12:31:18 +08:00
@@ -89,7 +89,8 @@ class cmitem implements renderable, templatable {
$data = new stdClass();
$data->cms = [];
$showactivityconditions = $course->showcompletionconditions == COMPLETION_SHOW_CONDITIONS;
$completionenabled = $course->enablecompletion == COMPLETION_ENABLED;
$showactivityconditions = $completionenabled && $course->showcompletionconditions == COMPLETION_SHOW_CONDITIONS;
$showactivitydates = !empty($course->showactivitydates);
// This will apply styles to the course homepage when the activity information output component is displayed.