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

event mod_deleted is NOT triggered when delete mod through AJAX

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0.5, 2.1.2
    • 2.1
    • Course
    • None
    • MOODLE_21_STABLE
    • MOODLE_20_STABLE, MOODLE_21_STABLE
    • Hide

      See patch. The code is totally copied from course/mod.php

      Show
      See patch. The code is totally copied from course/mod.php
    • Hide

      suitable for developers only:
      1/ create local plugin that handles the 'mod_deleted' event
      2/ verify it is triggered both via ajax and normal delete of activity

      Show
      suitable for developers only: 1/ create local plugin that handles the 'mod_deleted' event 2/ verify it is triggered both via ajax and normal delete of activity

      When in editing mode and AJAX is enabled, clicking the delete mod icon will request course/rest.php. It does remove the mod properly but forgets to trigger mod_deleted event.

      Any other modules depend on this event will not work.

            skodak Petr Skoda
            sunner Sunner Sun (Inactive)
            Sam Hemelryk Sam Hemelryk
            Rossiani Wijaya Rossiani Wijaya
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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