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

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8, 1.8.1, 1.8.2, 1.8.3
    • 2.0
    • Questions, Quiz
    • None
    • Any
    • MOODLE_18_STABLE
    • 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

              jamiesensei Jamie Pratt
              cedwards Chris Edwards
              Nobody Nobody
              Safat Shahin, Tim Hunt, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Kevin Percy, Laurent David, Mathew May, Mihail Geshoski, Sabina Abellan, Sara Arjona (@sarjona), Shamim Rezaie, Tim Hunt, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Kevin Percy, Laurent David, Mathew May, Mihail Geshoski, Sabina Abellan, Sara Arjona (@sarjona), Shamim Rezaie
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                24/Nov/10