mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-67413 competencies: do nothing upon activity completion
This commit is contained in:
parent
2ccf106454
commit
d051b3fc19
2 changed files with 23 additions and 5 deletions
|
@ -4660,6 +4660,9 @@ class api {
|
|||
$recommend = false;
|
||||
$strdesc = 'evidence_coursemodulecompleted';
|
||||
|
||||
if ($outcome == course_module_competency::OUTCOME_NONE) {
|
||||
continue;
|
||||
}
|
||||
if ($outcome == course_module_competency::OUTCOME_EVIDENCE) {
|
||||
$action = evidence::ACTION_LOG;
|
||||
|
||||
|
@ -4720,6 +4723,9 @@ class api {
|
|||
$recommend = false;
|
||||
$strdesc = 'evidence_coursecompleted';
|
||||
|
||||
if ($outcome == course_module_competency::OUTCOME_NONE) {
|
||||
continue;
|
||||
}
|
||||
if ($outcome == course_competency::OUTCOME_EVIDENCE) {
|
||||
$action = evidence::ACTION_LOG;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue