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

Item Analysis shows duplicate responses for Multiple Choice questions with LaTeX in answers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8, 1.8.1, 1.8.2, 1.8.3
    • Fix Version/s: 2.0
    • Component/s: Questions, Quiz
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      When viewing an Item Analysis report of a quiz with multiple choice questions that have LaTeX formatting in the answers, extra duplicate answers appear in the report table. This seems to be because the answer comparison in the Item Analysis report expects plain text answers from get_actual_response in each questiontype class file. The get_actual_response function in the question_multichoice_qtype class returns a formatted response. This change was introduced in MDL-8349 to filter the LaTeX in answers shown in the summary. This patch will format the questions as before, but the formatting was moved to response_summary where it is needed and not in get_actual_response where a plain text response is needed. The filter still shows LaTeX in this summary as escaped html which is how they were showing up before this patch.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  24/Nov/10