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

Restore of non-moodle2 backup file does not use general restore default settings

XMLWordPrintable

    • MOODLE_38_STABLE

      FULL STEPS

      Restore a backup file to a course that is not moodle2 format (i.e. IMSCC from a Canvas export) with the delete existing content option.

      EXPECTED

      Expect that general restore default settings configured sitewide (i.e., keep current roles and enrolments set to true) will be used.

      ACTUALLY HAPPENS

      General restore default settings are not used, rather the hard-coded values from backup/moodle2/restore_course_task.class.php:206 (i.e., keep current roles and enrolments set to false) are used.

      It looks like at backup/util/dbops/restore_controller_dbops.class.php:137 if the format is not FORMAT_MOODLE, then apply_defaults() from line 146 that pulls the sitewide settings is never called.

      This configuration presents a problem for us because teachers are removing active enrolments from courses when using a backup file for content that is not moodle2 format. Is there a way we can opt to use these settings, regardless of the backup format?

      Thank you!

        1. dev-course-export.imscc
          12 kB
          Michelle Melton
        2. enrol-post-restore.png
          17 kB
          Michelle Melton
        3. enrol-pre-restore.png
          18 kB
          Michelle Melton
        4. restore.png
          56 kB
          Michelle Melton
        5. restore-settings.png
          40 kB
          Michelle Melton

            Unassigned Unassigned
            meltonml Michelle Melton
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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