-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
3.11.5
-
None
-
3.11.5
-
MOODLE_311_STABLE
-
WP - Sprint 2.0 (Carlos), WP Sprint 2023-I1.1 (Ruslan)
Hi.
We have a custom way of setting certificates expiration dates. We were hoping to set the expiration date after the certificate has been issued, using the certificate_issued event.
However, we have an issue: as the code for the event trigger is located just after the code that sends the email notification, the certificate gets sent to the user before the event can modify its date.
(This is done in issue_certificate function in classes/template.php)
If possible, we would like to have the event triggered before sending the notification, so it could send it with the correct date.
As I don't know the plugin code very well, I am not sure if this can be done or it would present any problems.
Thanks,
Antonio