Merge branch 'MDL-34795' of git://github.com/srynot4sale/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2012-08-22 02:04:47 +02:00
commit 9075481920

View File

@ -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;
}
/**