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

Restoring calendar events does not reformat the content links

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.7, 2.5.3, 2.6
    • Fix Version/s: 2.5.5, 2.6.2
    • Component/s: Backup, Calendar
    • Labels:
    • Testing Instructions:
      Hide

      Test 1

      1. Create a course
      2. Add the calendar block
      3. Click on the title of the calendar block and create a new course event
        • In its description, add a link to the current course
      4. Create a new lesson module
      5. Create a new assignment with a due date
        • In the assignment description, add a link to the lesson module you just created
      6. You should now have 2 events in the course calendar
      7. Backup the course
      8. Restore as a new course
      9. View the restored events
        • Confirm that each events has links pointing to the restored course/activity

      Test 2

      1. Create an assignment with a due date
        • In the assignment description, add a link to this course
      2. Backup the assignment only (not the course)
      3. Restore the assignment into another course
      4. Confirm that the restored event points to the right course
      Show
      Test 1 Create a course Add the calendar block Click on the title of the calendar block and create a new course event In its description, add a link to the current course Create a new lesson module Create a new assignment with a due date In the assignment description, add a link to the lesson module you just created You should now have 2 events in the course calendar Backup the course Restore as a new course View the restored events Confirm that each events has links pointing to the restored course/activity Test 2 Create an assignment with a due date In the assignment description, add a link to this course Backup the assignment only (not the course) Restore the assignment into another course Confirm that the restored event points to the right course
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-43460-master

      Description

      If you include a link course/view.php?id=n into a calendar event, and then backup the course it is converted to $@SOMETHING*3@$. But upon restore the calendar events are not reprocessed which means that the links are broken.

      1. Create a new course event
      2. In its description, add a link to the current course
      3. Backup the course
      4. Restore as a new course
      5. View the restored event

      Actual

      • The link is now broken

      Expected

      • The link leads to the new course

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Mar/14