mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Merge branch 'MDL-34795' of git://github.com/srynot4sale/moodle
This commit is contained in:
commit
9075481920
1 changed files with 5 additions and 1 deletions
|
@ -158,7 +158,11 @@ class completion_completion extends data_object {
|
||||||
$this->timecompleted = $timecomplete;
|
$this->timecompleted = $timecomplete;
|
||||||
|
|
||||||
// Save record
|
// Save record
|
||||||
return $this->_save();
|
if ($result = $this->_save()) {
|
||||||
|
events_trigger('course_completed', $this->get_record_data());
|
||||||
|
}
|
||||||
|
|
||||||
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue