From b6f7d9b1927a1bbd30a0fa4a8c996a85dfe044bd Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Tue, 11 Nov 2025 12:35:25 +0000 Subject: [PATCH] MDL-87056 enrol: update instance modified date when toggling status. --- lib/enrollib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/enrollib.php b/lib/enrollib.php index c7014a585fe..b7c5b5fd5ad 100644 --- a/lib/enrollib.php +++ b/lib/enrollib.php @@ -2714,6 +2714,7 @@ abstract class enrol_plugin { global $DB; $instance->status = $newstatus; + $instance->timemodified = time(); $DB->update_record('enrol', $instance); // Dispatch the hook for post enrol status update actions.