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

HTML in second instance of Quiz essay causes lost data in student answer

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.8.7, 1.9, 1.9.1, 1.9.2, 1.9.3
    • 2.0
    • Quiz
    • None
    • MOODLE_18_STABLE, MOODLE_19_STABLE
    • MOODLE_20_STABLE

    Description

      If a student uses < > in their essay question answer in an essay question that is the second or greater essay question displayed on a page, the text between the <> is lost.

      To reproduce:
      Create a quiz with two or more essay questions.
      Display the quiz (with more than one question per page).
      Take the quiz, enter <anytext> in the first answer and <anytext> in the second answer.

      Due to the fix for http://tracker.moodle.org/browse/MDL-6649 the student answers the first question using the HTML editor, this saves fine. The student answers the second question using a plain text field (see 6649). The plain text field cleans out the text between the <>. I've reproduced this in 1.6.5 and in 1.8+

      This is probably related to:

      http://tracker.moodle.org/browse/MDL-2006
      and the same fix for lesson essay questions may work, we're investigating.

      Attachments

        Activity

          People

            timhunt Tim Hunt
            michaelp Michael Penney
            Nobody Nobody
            Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            10 Vote for this issue
            Watchers:
            16 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              24/Nov/10