mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Merge branch 'MDL-34795' of git://github.com/srynot4sale/moodle
This commit is contained in:
commit
9075481920
@ -158,7 +158,11 @@ class completion_completion extends data_object {
|
||||
$this->timecompleted = $timecomplete;
|
||||
|
||||
// Save record
|
||||
return $this->_save();
|
||||
if ($result = $this->_save()) {
|
||||
events_trigger('course_completed', $this->get_record_data());
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user