Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-51604

Course created event is triggered too late

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0
    • 3.0
    • Course

      Discovered while working on MDL-44640
      in funciton create_course() \core\events\course_created is triggered after we add blocks, enrolment instances, etc.

      This may be good for event observers but in the logs it will look like we first create enrolment instances for some course and THEN create a course itself.

      I had to adjust unit tests in MDL-44640 because the course_created event is no longer the first one in the sink after creating the course.

            marina Marina Glancy
            marina Marina Glancy
            Ryan Wyllie Ryan Wyllie
            David Monllaó David Monllaó
            John Okely John Okely
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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