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

Course category deleted event record snapshot is missing

XMLWordPrintable

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

      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.

            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

              Created:
              Updated:
              Resolved:

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

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.