mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-34313: Deleting assignfeedback plugins deletes config for assignsubmission_plugin instead.
This commit is contained in:
parent
943036314f
commit
c8ac7e7938
1 changed files with 3 additions and 2 deletions
|
@ -269,7 +269,7 @@ class assign_plugin_manager {
|
||||||
|
|
||||||
if ($confirm) {
|
if ($confirm) {
|
||||||
// Delete any configuration records.
|
// Delete any configuration records.
|
||||||
if (!unset_all_config_for_plugin('assignsubmission_' . $plugin)) {
|
if (!unset_all_config_for_plugin($this->subtype . '_' . $plugin)) {
|
||||||
$this->error = $OUTPUT->notification(get_string('errordeletingconfig', 'admin', $this->subtype . '_' . $plugin));
|
$this->error = $OUTPUT->notification(get_string('errordeletingconfig', 'admin', $this->subtype . '_' . $plugin));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -282,7 +282,8 @@ class assign_plugin_manager {
|
||||||
$DB->delete_records('assign_plugin_config', array('plugin'=>$plugin, 'subtype'=>$this->subtype));
|
$DB->delete_records('assign_plugin_config', array('plugin'=>$plugin, 'subtype'=>$this->subtype));
|
||||||
|
|
||||||
// Then the tables themselves
|
// Then the tables themselves
|
||||||
drop_plugin_tables($this->subtype . '_' . $plugin, $CFG->dirroot . '/mod/assign/' . $this->subtype . '/' .$plugin. '/db/install.xml', false);
|
$shortsubtype = substr($this->subtype, strlen('assign'));
|
||||||
|
drop_plugin_tables($this->subtype . '_' . $plugin, $CFG->dirroot . '/mod/assign/' . $shortsubtype . '/' .$plugin. '/db/install.xml', false);
|
||||||
|
|
||||||
// Remove event handlers and dequeue pending events
|
// Remove event handlers and dequeue pending events
|
||||||
events_uninstall($this->subtype . '_' . $plugin);
|
events_uninstall($this->subtype . '_' . $plugin);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue