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

Events should not be dispatched to observers of disabled plugins

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Deferred
    • Icon: Minor Minor
    • None
    • 4.0.9, 4.1.4, 4.2.1
    • Events API
    • MOODLE_400_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE

      At the moment events are dispatched to observers of plugins even when the plugin is disabled, this is leading to situations where actions are being performed when they should not.

      The only way a system administrator could work around a case like this would be to fully uninstall an affected plugin.

      The current behaviour seems to be so unexpected that even plugins in core have not been checking if they are disabled before handling events, for example see MDL-71909.

      It seems to me that it would be much better for Moodle to detect if plugins are enabled before sending an event.

            Unassigned Unassigned
            nmagill Neill Magill
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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