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

restore always removes course idnumber

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.4, 2.6
    • Fix Version/s: 2.6.5, 2.7.2
    • Component/s: Backup
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a new course with a unique Course ID Number
      2. Under 'Course Administration' backup the course. (default settings)
      3. Under 'Course Administration' restore the course. (as a new course)

      Course should restore but indicate in the logs that the idnumber was unset because it already exists. - idnumber will be empty.

      1. Repeat above but with an empty Course ID Number

      Course should restore fine - idnumber will be empty

      1. Delete original course with ID Number and restore from backup.

      Course will restore with no errors. - idnumber will be restored.

      1. Restore course to different site

      Course will restore with no errors - idnumber will be empty.

      Show
      Create a new course with a unique Course ID Number Under 'Course Administration' backup the course. (default settings) Under 'Course Administration' restore the course. (as a new course) Course should restore but indicate in the logs that the idnumber was unset because it already exists. - idnumber will be empty. Repeat above but with an empty Course ID Number Course should restore fine - idnumber will be empty Delete original course with ID Number and restore from backup. Course will restore with no errors. - idnumber will be restored. Restore course to different site Course will restore with no errors - idnumber will be empty.
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-37312-master
    • Story Points:
      13
    • Sprint:
      BACKEND Sprint 16

      Description

      This looks weird especially when restoring on the same site. I would personally expect that restore verifies that user may change idnumber + no idnumber exists + this is the same site and if all conditions are true then keeps the same idnumber.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              zac Zachary Durber
              Reporter:
              skodak Petr Skoda
              Peer reviewer:
              Frédéric Massart
              Integrator:
              Damyon Wiese
              Tester:
              Adrian Greeve
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                8/Sep/14