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

Decode links fails for Single Discussion forum type

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.5, 3.0.3, 3.1
    • Fix Version/s: 2.9.6, 3.0.4
    • Component/s: Forum
    • Labels:
    • Testing Instructions:
      Hide
      1. Create any activity. Copy it's Moodle URL.
      2. Create a Forum
        1. In the Intro, paste the link from the activity in Step 1
        2. Also in the Intro, add a file, like embedding an image.
        3. For type, choose single
        4. Save changes
      3. Backup the course, include all data
      4. Restore the course, but uncheck restore users. This prevents user data from being restored.
      5. After the restore, view the forum. The link to the activity should be correct (EG: pointing to the new version in the newly restored course). Also the image should continue to display.
      Show
      Create any activity. Copy it's Moodle URL. Create a Forum In the Intro, paste the link from the activity in Step 1 Also in the Intro, add a file, like embedding an image. For type, choose single Save changes Backup the course, include all data Restore the course, but uncheck restore users. This prevents user data from being restored. After the restore, view the forum. The link to the activity should be correct (EG: pointing to the new version in the newly restored course). Also the image should continue to display.
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE
    • Pull Master Branch:
      MDL-53660-master

      Description

      If you are using a single discussion forum type and link to another activity in the intro, then on backup and restore without user data will result in the link to the other activity not being decoded when viewing the forum. But when you edit the forum, you will see that the link has been decoded there.

      The problem is that in \restore_hsuforum_activity_structure_step::after_execute - the forum introduction is copied into a new discussion and post. But this post is missed by the content decoder process because the post's ID is not in the backup_ids_temp table. The result being that the forum introduction is decoded but the post message is not.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/May/16