MDL-53451 tool_lpmigrate: Fixing broken logic found in tests

Thanks to MSSQL, the only one with failures.
This commit is contained in:
Frederic Massart
2016-04-20 17:52:09 +08:00
parent 4fd183d3c3
commit d789158566
4 changed files with 37 additions and 4 deletions
@@ -574,6 +574,11 @@ class framework_processor {
// Finally, we remove the course competencies, but only for the 100% successful ones.
foreach ($competenciestoremovefromcourse as $competencyid => $unused) {
// Skip competencies with issues.
if (isset($competencieswithissues[$competencyid])) {
continue;
}
try {
// Process the course competency.
api::remove_competency_from_course($courseid, $competencyid);