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

Forum search results not correctly formated when message format is not HTML

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.4, 3.0.2, 3.1
    • Fix Version/s: 2.9.5, 3.0.3
    • Component/s: Forum
    • Labels:
    • Testing Instructions:
      Hide
      • Set your editor preferred text editor to Plain text area
      • Add a new discussion to a forum
      • Choose "Plain text format" for the message
      • Write the following text:

        one
        two
        three
        

      • Post to forum
      • Search in the forum the word "one"
      • Confirm that the post id displayed correctly and as you would expect it
      • Repeat for all other editing formats.
      Show
      Set your editor preferred text editor to Plain text area Add a new discussion to a forum Choose "Plain text format" for the message Write the following text: one two three Post to forum Search in the forum the word "one" Confirm that the post id displayed correctly and as you would expect it Repeat for all other editing formats.
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-52862_master

      Description

      To reproduce:

      • Set your editor preferred text editor to Plain text area
      • Add a new discussion to a forum
      • Choose "Plain text format" for the message
      • Write the following text:

        one
        two
        three
        

      • Post to forum
      • Search in the forum the word "one"

      What you get in the results is the message you've just posted with html tags.

      Maybe it's possible to reproduce this behaviour with other formats. Other versions may be affected too.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

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