Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-33578

Restoring a backup with files references on other site should show a warning

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • None
    • 2.3
    • Backup
    • MOODLE_23_STABLE

      There is no warning when restoring a backup that contains reference files on another one than the original one.

      Discovered while testing MDLQA-2127

      I used a resource 'File' with a jpeg as the file.

      Testing steps from the QA issue...

      1. Create a course, and add a reference file.
      2. Backup this course, at the end of backup process, you should be able to see a warning, "There are file references in this course, they can only be restored in this site"
      3. Save the backup file
      4. Restore the course on another moodle site (using the saved backup file), at the end of restoring process, you will warned some files cannot be restored because they are references
      5. Restore the course on the original site. There will not be any warnings and all file references will be restored correctly.

            fred Frédéric Massart
            fred Frédéric Massart
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.