Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-8867

certificate_issued event triggered after email is sent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor 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

            kabalin Ruslan Kabalin
            aduranterres Antonio Duran
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.