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

Replace Legacy events - Course

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.6
    • Component/s: Events API
    • Labels:
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull Master Branch:
      MDL-39957_master
    • Story Points:
      20
    • Sprint:
      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

              Assignee:
              markn Mark Nelson
              Reporter:
              ankit_frenz Ankit Agarwal
              Peer reviewer:
              Ankit Agarwal
              Integrator:
              Dan Poltawski
              Tester:
              Andrew Davis
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                18/Nov/13