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

Course search restore link is broken

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.5, 2.2.2, 2.3
    • Fix Version/s: 2.1.6, 2.2.3
    • Component/s: Backup, Global search
    • Labels:
    • Testing Instructions:
      Hide

      Search for a course
      Click 'Turn editing on' (if not already on)
      Click on the 'restore' icon beside one of the search results
      Check the 'restore course' page appears as expected

      Show
      Search for a course Click 'Turn editing on' (if not already on) Click on the 'restore' icon beside one of the search results Check the 'restore course' page appears as expected
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull Master Branch:
      MDL-31935_search_restore_link

      Description

      If you search for a course, then turn editing on, then click on the 'restore' icon, then you are taken to a page:

      '../files/index.php?id=[courseid]&wdir=/backupdata'

      This appears to be left over from Moodle 1.9

      The correct path would be:
      '[webroot]/backup/restorefile.php?contextid=[coursecontextid]'

      I'll attach a patch

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/May/12