-
Bug
-
Resolution: Fixed
-
Major
-
2.4.5, 2.5.3, 2.6
-
MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
-
MOODLE_25_STABLE, MOODLE_26_STABLE
-
MDL-42995-master-3rd -
-
-
8
-
FRONTEND Sprint 7
When an assignment description contains an embedded file or a link to a file and that assignment appears in the Calendar block (because it has a due date), the embedded file or link to a file breaks when that course is backed up and restored to a new course.
Steps to reproduce:
- Create a course.
- Add an assignment, add a file (e.g., an image) to the description or create a link in the description to an existing resource (e.g., PDF document), and set a due date for the assignment.
- Add the Calendar block to the course.
- Backup the course and restore it elsewhere on the site (be sure to include user data).
- Enroll a user into the restored-to course.
- As the enrolled user, load the assignment in the restored course. The embedded file or the link work.
- Still as the enrolled user, go back to the course page and use the Calendar block to click on the due date and then the assignment link.
- The embedded image or the link in the assignment description here is broken.
Expected result: The files in the description should not be broken. Since the assignment description on the assignment page is correct, the calendar page should also be correct.
Actual result: The assignment page is correct but the calendar page has broken links.