Permalink
Browse files

MDL-33373 fixed bug in backup of files as a regression from MDL-28666

  • Loading branch information...
1 parent 4631e39 commit f1bd371c79e1f37cfb97ffb1b62a9d0cd6fbea7e @marinaglancy marinaglancy committed May 30, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 backup/moodle2/backup_stepslib.php
  2. +1 −1 backup/util/dbops/backup_controller_dbops.class.php
@@ -1414,7 +1414,7 @@ protected function define_structure() {
$file->set_source_sql("SELECT f.*, r.repositoryid, r.reference
FROM {files} f
- JOIN {files_reference} r
+ LEFT JOIN {files_reference} r
ON r.id = f.referencefileid
JOIN {backup_ids_temp} bi
ON f.id = bi.itemid
@@ -420,7 +420,7 @@ public static function backup_includes_file_references($backupid) {
$sql = "SELECT count(r.repositoryid)
FROM {files} f
- JOIN {files_reference} r
+ LEFT JOIN {files_reference} r
ON r.id = f.referencefileid
JOIN {backup_ids_temp} bi
ON f.id = bi.itemid

0 comments on commit f1bd371

Please sign in to comment.