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

Delete function discrepancy when deleting course modules

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • None
    • 3.7
    • Course
    • MOODLE_37_STABLE

      Found this while handling MDL-65803.
      There is a discrepancy between how the course_delete_module and remove_course_contents functions behave, specifically when the latter handles deletion of course modules. For instance, if you call 'delete_course' which calls 'remove_course_contents', it doesn't trigger the 'pre_course_module_delete' callback

      Steps to reproduce:

      • Debug the updated unit test 'test_get_recent_items' from the related issue
      • Put a breakpoint in the 'block_recentlyaccesseditems_pre_course_module_delete'
      • Confirm the breakpoint doesn't get hit

            Unassigned Unassigned
            peterdias Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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