Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.0.5, 3.1, 3.2
-
MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
-
MOODLE_30_STABLE, MOODLE_31_STABLE
-
MDL-54892-master -
-
Description
Scheduled tasks for mod plugins are registered with their component name using the frankenstyle syntax.
See lib/classes/task/manager.php:reset_scheduled_tasks_for_component()
However, for the uninstall process of a plugin (in case of 'mod's) the $pluginname is abreviated to no longer contain the prefix 'mod_'.
See lib/adminlib.php:151
In this way, the delete_records in lib/adminlib.php:203 is not able to delete the tasks of the module.
Same is valid for the entries of 'messageinbound_datakeys' and 'messageinbound_handlers'.