Skip to content

Commit

Permalink
MDL-35773 core_backup: ensure we restore with new itemid
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjnelson committed Jul 26, 2019
1 parent 7c1a42a commit 2124100
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backup/util/dbops/restore_dbops.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,7 @@ public static function send_files_to_pool($basepath, $restoreid, $component, $fi
$filesystem = $fs->get_file_system();
$restorefile = $file;
$restorefile->contextid = $newcontextid;
$restorefile->itemid = $rec->newitemid;
$storedfile = new stored_file($fs, $restorefile);

// Ok, let's try recover this file.
Expand Down

0 comments on commit 2124100

Please sign in to comment.