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

Replace Legacy events - Course

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5
    • 2.6
    • Events API
    • MOODLE_25_STABLE
    • MOODLE_26_STABLE
    • MDL-39957_master
    • Hide
      1. Run phpunit course/tests/courselib_test.php and ensure there are no errors.
      2. Ensure you can change the order of two courses in a category.
      3. Ensure that you can hide one of the courses by clicking on the eye icon.
      4. Visit <yoursite>/report/log/index.php?id=1 and ensure you see a 'course move' and a 'course hide (or show depending on what action you performed)' log.
      Show
      Run phpunit course/tests/courselib_test.php and ensure there are no errors. Ensure you can change the order of two courses in a category. Ensure that you can hide one of the courses by clicking on the eye icon. Visit <yoursite>/report/log/index.php?id=1 and ensure you see a 'course move' and a 'course hide (or show depending on what action you performed)' log.
    • 20
    • BACKEND Sprint 3

    Description

      Replace all legacy events related to course.
      course/lib.php: events_trigger('course_created', $course);
      course/lib.php: events_trigger('course_updated', $course);
      lib/moodlelib.php: events_trigger('course_deleted', $course);
      lib/moodlelib.php: events_trigger('course_content_removed', $course);
      lib/coursecatlib.php: events_trigger('course_category_deleted', $this);
      lib/coursecatlib.php: events_trigger('course_category_deleted', $this);
      backup/util/plan/restore_plan.class.php: events_trigger('course_restored', (object) array(

      Attachments

        Issue Links

          Activity

            People

              markn Mark Nelson
              ankit_frenz Ankit Agarwal
              Ankit Agarwal Ankit Agarwal
              Dan Poltawski Dan Poltawski
              Andrew Davis Andrew Davis
              David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                18/Nov/13