When using the prermalink from sections to make internal links, it doesnt get recalculated on import or course restore.
How to recpreduce the bug.
- Make a new course with four sections
- Rename the sections and insert some random activities.
- Go to editmode and edit a section
- Click on "Permalink"
- Copy the permalink
- Go to the top section and insert a "Text and media area"
- Click on link icon, insert some link tekst and past in the copied permalink
- Save
- Go to the front of the course to see the link is working.
- Click on "More" in the course menu and choose "Course reuse"
- Make a backup of the course
- Restore the course
- 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.
- has been marked as being related by
-
MDL-70539 Duplicating quiz - Failed to find an answer matching "" in the question_answers database table.
-
- Open
-
-
MDL-18799 Backup/Restore problem. ID don´t change on resource or image links
-
- Closed
-
-
MDL-78979 Restore or copy a course change links to database items
-
- Closed
-