"REPOSITORY/MDL-17815, remove instance config when deleting instances"
This commit is contained in:
@@ -1362,6 +1362,7 @@ abstract class repository {
|
||||
final public function delete() {
|
||||
global $DB;
|
||||
$DB->delete_records('repository_instances', array('id'=>$this->id));
|
||||
$DB->delete_records('repository_instance_config', array('instanceid'=>$this->id));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user