Skip to content
Snippets Groups Projects
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
Branches
Tags
No related merge requests found
...@@ -194,8 +194,7 @@ ...@@ -194,8 +194,7 @@
$matrix_modules=$module_instance->get_matrix_modules_by_id_section($section->id); $matrix_modules=$module_instance->get_matrix_modules_by_id_section($section->id);
foreach ($modules as $key => $module) { foreach ($modules as $key => $module) {
if($module->section == $section->id && $module->completion!=0 && $module->deletioninprogress==0){
if($module->section == $section->id && $module->completion!=0){
$completion_activity=true; $completion_activity=true;
if(in_array($key, array_column($matrix_modules, 'cmid'))){ if(in_array($key, array_column($matrix_modules, 'cmid'))){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment