fix(observer): update event type for course completion check
Changed event type from 'course_module_completion_updated' to 'attempt_submitted' within the observer to correctly trigger course completion checks upon quiz attempt submission. This aligns with the intended workflow of updating completion status when a quiz is attempted instead of a module update. This change ensures that the system accurately reflects users' progress and achieves synchronization with the quiz completion logic.
This commit is contained in:
parent
4a7f631532
commit
897724127c
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
class observer
|
class observer
|
||||||
{
|
{
|
||||||
public static function check_course_completion(\core\event\course_module_completion_updated $event)
|
public static function check_course_completion(\mod_quiz\event\attempt_submitted $event)
|
||||||
{
|
{
|
||||||
global $DB;
|
global $DB;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue