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

Double quotes breaking short answers in a multianswer/cloze question

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.6.2
    • 1.6.4, 1.7.1, 1.8
    • Quiz
    • None
    • Linux, PHP 5.0.4, MySQL 4.1.20, Apache 2.0.54, Moodle latest 1.6.2+
    • MOODLE_16_STABLE
    • MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE

    Description

      If double quotes character (ASCII character 34) is entered into a short answer field of a multianswer (cloze) question, and the answer is either submitted individually (using the adaptive mode) OR saved without submitting, then all characters following the first occurence of the double quotes are lost.

      Example:
      [SHORTANSWER FIELD]: It is called "love".

      • Save without submitting (1)
        [SHORTANSWER FIELD]: It is called \
      • Save without submitting (2)
        [SHORTANSWER FIELD]: It is called

      If the answer is submitted at once (not using adaptive mode or save without submitting feature), it is saved OK to the database and graded OK, but it appears damaged on the review page.
      Example:
      [SHORTANSWER FIELD]: It is called "love".

      • Submit all and finish
        [REVIEW: SHORTANSWER FIELD]: It is called \

      Attachments

        Activity

          People

            skodak Petr Skoda
            mixik Daniel Miksik
            Nobody Nobody
            Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              17/Jan/07