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

Course Restore does not keep URLs in resources when URLs are Moodle courses in the same installation

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.13
    • Fix Version/s: 1.9.15
    • Component/s: Backup
    • Labels:
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      1) Create one 1.9 site with 2 courses, A and B
      2) In course B create one resource (web page), with 2 links, one pointing to course A main page and another pointing to course B main page.
      3) Backup course B
      4) Restore the backup into new course (let's call it C).
      5) TEST: The original link to course A is unmodified and continues pointing to course A.
      6) TEST: The original link to course B has been modified and now points to course C.

      Show
      1) Create one 1.9 site with 2 courses, A and B 2) In course B create one resource (web page), with 2 links, one pointing to course A main page and another pointing to course B main page. 3) Backup course B 4) Restore the backup into new course (let's call it C). 5) TEST: The original link to course A is unmodified and continues pointing to course A. 6) TEST: The original link to course B has been modified and now points to course C.
    • Workaround:
      Hide

      None to my knowledge, except manually re-assigning links.

      Show
      None to my knowledge, except manually re-assigning links.
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE
    • Pull from Repository:

      Description

      Affect version: Moodle 1.9.13+ (Build: 20110928)

      To reproduce:
      1. create a Moodle course "A"
      2. create a couple of meta courses "M1" and "M2" and enroll course "A" in the two meta courses
      3. now in course "A", add two resources "Link to file or web site", pointing to the Moodle URLs of the two courses "M1" and "M2". (for example, http://www.yourdomain.tld/course/view.php?id=XX)
      4. verify you can access the correct link (ak, course M1 and M2) using the resources
      5. now backup and restore the course "A" in a new course "B", in the same site.
      6. in the newly created course "B", check the resources pointing to the course M1 and M2: resource links are now broken and points to the home page of course "B".

      This issue may be related to MDL-26831

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  28/Nov/11