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

Course category deleted event record snapshot is missing

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.9.6, 3.10.3
    • 3.10.5, 3.11.1
    • Course, Events API

    Description

      When using the course_category_deleted event in an observers.php class, we can not get the previous deleted data from the record snapshot, as this line is missing in the delete_full (course/classes/category.php) core function.

      Normally when deleting something which will be used in the observers, the data will be stored temporarily with use of the add_record_snapshot. Afterwards it and can be retrieved within the event observer with the use of get_record_snapshot.

      Attachments

        Activity

          People

            pholden Paul Holden
            pead Adrian Perez
            Adrian Perez Adrian Perez
            Andrew Lyons Andrew Lyons
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              12/Jul/21

              Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 53 minutes
                53m