From b38cf7b56c39c362f1b39f9659b36f11a6976659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnaud=20Trouv=C3=A9?= Date: Thu, 30 Nov 2017 15:57:41 +0100 Subject: [PATCH] Set timestart on enrolment confirmation --- lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.php b/lib.php index 28f0aca..15bfaad 100644 --- a/lib.php +++ b/lib.php @@ -252,7 +252,7 @@ class enrol_apply_plugin extends enrol_plugin { continue; } - $this->update_user_enrol($instance, $userenrolment->userid, ENROL_USER_ACTIVE); + $this->update_user_enrol($instance, $userenrolment->userid, ENROL_USER_ACTIVE, time()); $DB->delete_records('enrol_apply_applicationinfo', array('userenrolmentid' => $enrol)); $this->notify_applicant(