MDL-54751 core_completion: Exclude activities pending deletion

This commit is contained in:
Jake Dallimore
2016-11-07 07:41:59 +08:00
parent ff4230d88e
commit f939a6d452
+1 -1
View File
@@ -1063,7 +1063,7 @@ class completion_info {
$modinfo = get_fast_modinfo($this->course);
$result = array();
foreach ($modinfo->get_cms() as $cm) {
if ($cm->completion != COMPLETION_TRACKING_NONE) {
if ($cm->completion != COMPLETION_TRACKING_NONE && !$cm->deletioninprogress) {
$result[$cm->id] = $cm;
}
}