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

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

    XMLWordPrintable

Details

    • MOODLE_38_STABLE

    Description

      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!

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Clockify

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