MDL-60121 enrol: Fix enrol plugin backup

Allow more than one enrol plugin to add backup structure.
This commit is contained in:
Matt Petro 2017-09-14 10:39:09 -04:00
parent 32f9550e85
commit f5ea99bf6e

View File

@ -529,7 +529,7 @@ class backup_enrolments_structure_step extends backup_structure_step {
$enrol->annotate_ids('role', 'roleid');
// Add enrol plugin structure.
$this->add_plugin_structure('enrol', $enrol, false);
$this->add_plugin_structure('enrol', $enrol, true);
return $enrolments;
}