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

Backing up and restoring permalink does not recalculate section id

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.2
    • Backup, Course
    • MOODLE_402_STABLE

      When using the prermalink from sections to make internal links, it doesnt get recalculated on import or course restore.

      How to recpreduce the bug.

      1. Make a new course with four sections
      2. Rename the sections and insert some random activities.
      3. Go to editmode and edit a section
      4. Click on "Permalink"
      5. Copy the permalink
      6. Go to the top section and insert a "Text and media area"
      7. Click on link icon, insert some link tekst and past in the copied permalink
      8. Save
      9. Go to the front of the course to see the link is working.
      10. Click on "More" in the course menu and choose "Course reuse"
      11. Make a backup of the course
      12. Restore the course
      13. Go to the cours page and click on the link

      Expected behavior. 

      That the permalink is recalculated and takes you to the right course section

      What actually happens. 

      The link does nothing.

      What happens is that the course id is recalculated, but the section id isnt.

            Unassigned Unassigned
            hsp.praxis Henrik Sune Pedersen
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

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