Skip to content

Commit

Permalink
MDL-22148 course enrolment backup - role ids from enrol table need to…
Browse files Browse the repository at this point in the history
… be annotated after all
  • Loading branch information
skodak committed Jul 8, 2010
1 parent 101bd9c commit 902944a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backup/moodle2/backup_stepslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@ protected function define_structure() {
$enrolment->set_source_table('user_enrolments', array('enrolid' => backup::VAR_PARENTID));
}

$enrol->annotate_ids('role', 'roleid');

//TODO: let plugins annotate custom fields too and add more children

return $enrolments;
Expand Down

0 comments on commit 902944a

Please sign in to comment.