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

Admin cannot restore existing course adding data to it.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.9, 2.0
    • Fix Version/s: 1.9.1
    • Component/s: Backup
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      I've just noticed this strange behavior, new to 1.9 and 2.0, whereas functionality worked OK in previous Moodle versions.
      ------------------
      PROBLEM
      ------------------
      Checked with 2.0, but same problem exists in 1.9 too.
      Logged in as Admin, make a partial backup of any course (other than site front page), e.g. Course 101. Save backup file locally.
      Go to Course 102 and go to Restore. Upload previously saved backup file to Files -> backupdata. Click on Restore.
      Message: Later in this process you will have a choice of adding this backup to an existing course or creating a completely new course.
      Click Continue.

      1. Creating temporary structures
      2. Deleting old data
      3. Copying zip file
        etc.
        Click Continue.
        Restore to -> Select Existing course, adding data to it
        On the next page, as per moodle 1.8, you should be offered the option to **Choose a course** from the list of existing courses on your moodle site... but you are not presented with this option. You only see the Restore this course now button. Click on it, the restore process seems to work:
      4. Using existing course
      • From: Questionnaire module Demo (QUEST_DEMO)
      • To: moodle20 (moodle20)
      • Adding data to existing
      1. Creating groups.
        etc.

      but the restored data can be found nowhere on the site!!!
      ------------------
      DIAGNOSTIC
      ------------------
      The problem arises from file backup/restore_check.html lines 247 & sqq. where we strangely have a commented out line, and conditions which are never met for the display of the "choosecourse" message...

      ------------------
      SOLUTION
      ------------------
      I do not understand enough of the workings of the restore functions to suggest a solution but I do hope one will be found, and I am really surprised that this bug has gone un-noticed (in 1.9) so far..

      Joseph

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  15/May/08