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

Course created event is triggered too late

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0
    • 3.0
    • Course

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              marina Marina Glancy
              marina Marina Glancy
              Ryan Wyllie Ryan Wyllie
              David Monllaó David Monllaó
              John Okely John Okely
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                16/Nov/15