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

Decode links fails for Single Discussion forum type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.9.6, 3.0.4
    • 2.9.5, 3.0.3, 3.1
    • Forum
    • MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE
    • MOODLE_29_STABLE, MOODLE_30_STABLE
    • MDL-53660-master
    • 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.

      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.

            bushido Mark Nielsen
            bushido Mark Nielsen
            Dan Poltawski Dan Poltawski
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            cameron1729 cameron1729
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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