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

course_created events not triggered while restoring a course in a new course

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • 1.9.12, 2.4.2
    • Backup, Course
    • Any
    • MOODLE_19_STABLE, MOODLE_24_STABLE
    • Easy

      Hello,
      I notice that course_created events are not triggered while restoring a course in a new course
      Is it possible to add it to the restore_create_new_course method (at end)

      /backup/restorelib.php metho restore_create_new_course
      Add the following before return $status;

      //trigger course creation events
      events_trigger('course_created', $course);

            stronk7 Eloy Lafuente (stronk7)
            cperves Céline Perves
            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.