MDL-46282 core: Correct deletion of message datakeys

This issue is a part of the MDL-47194 Task.
This issue is a part of the MDL-39707 Epic.
This commit is contained in:
Andrew Nicols 2014-10-02 11:50:15 +08:00
parent ed3e85755c
commit 390485058e

View File

@ -203,7 +203,7 @@ function uninstall_plugin($type, $name) {
$DB->delete_records('task_scheduled', array('component' => $pluginname));
// Delete Inbound Message datakeys.
$DB->delete_records_sql('messageinbound_datakeys',
$DB->delete_records_select('messageinbound_datakeys',
'handler IN (SELECT id FROM {messageinbound_handlers} WHERE component = ?)', array($pluginname));
// Delete Inbound Message handlers.