MDL-21432 backup - complete standard/course outcomes backup & restore

This commit is contained in:
Eloy Lafuente 2010-07-20 10:36:37 +00:00
parent 6969b70aa5
commit c8730ff028
3 changed files with 73 additions and 1 deletions

View file

@ -539,6 +539,9 @@ class backup_final_outcomes_structure_step extends backup_structure_step {
WHERE bi.backupid = ?
AND bi.itemname = 'outcomefinal'", array(backup::VAR_BACKUPID));
// Annotate outcome files (they store files in system context, so pass it instead of default one)
$outcome->annotate_files('grade', 'outcome', 'id', get_context_instance(CONTEXT_SYSTEM)->id);
// Return main element (outcomesdef)
return $outcomesdef;
}