mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-21432 backup - complete standard/course outcomes backup & restore
This commit is contained in:
parent
6969b70aa5
commit
c8730ff028
3 changed files with 73 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue