Commit 5e7f91a6 authored by DELARUELLE Myriam's avatar DELARUELLE Myriam
Browse files

fix #106 where we could add an activity in stance of deletion to the matrix

parent d42de8a1
......@@ -194,8 +194,7 @@
$matrix_modules=$module_instance->get_matrix_modules_by_id_section($section->id);
foreach ($modules as $key => $module) {
if($module->section == $section->id && $module->completion!=0){
if($module->section == $section->id && $module->completion!=0 && $module->deletioninprogress==0){
$completion_activity=true;
if(in_array($key, array_column($matrix_modules, 'cmid'))){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment