History | Log In     View a printable version of the current page.  
We are currently focused especially on Moodle 2.0, Moodle 1.9.x bugs and Moodle 1.9.x testing.    Confused? Lost? Please read this introduction to the Tracker.
Issue Details (XML | Word | Printable)

Key: MDL-12418
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Jamie Pratt
Reporter: Chris Edwards
Votes: 1
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
Moodle

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

Created: 04/Dec/07 03:17 AM   Updated: Thursday 06:51 PM
Component/s: Quiz, Questions
Affects Version/s: 1.8, 1.8.1, 1.8.2, 1.8.3
Fix Version/s: 2.0

File Attachments: 1. Text File moodle_item_analysis_latex.patch (1 kb)

Image Attachments:

1. pre-patch1.png
(48 kb)
Issue Links:
Dependency
 
Duplicate
 

Database: Any
Participants: Chris Edwards, Jamie Pratt, Oliver Rahs and Tim Hunt
Security Level: None


 Description  « Hide
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.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Chris Edwards - 04/Dec/07 03:57 AM
I tried searching on this before posting it, but it seems that this issue is related to MDL-11981. The formatting problem in the summary asked about in that report is not fixed by the above patch, however.

Chris Edwards - 04/Dec/07 04:14 AM
This should fix the problems in the Item Analysis Report in MDL-11981

Chris Edwards - 04/Dec/07 04:15 AM
Sorry for the problem links. This should resolve the display issue in the Item Analysis report for TeX formatting.

Oliver Rahs - 12/Dec/07 09:58 PM
Hi
Thanks a lot for your patch. I've installed and tested it on our moodle-installation and it works fine. (The issue MDL-11981, that I've created is resolved with your patch too).
Oliver

Tim Hunt - 04/Apr/08 11:33 PM
Assigning quiz report issues mentioned in http://docs.moodle.org/en/Development:Quiz_report_enhancements to Jamie.

Jamie Pratt - 27/Nov/08 06:22 PM
This problem was caused by the formatting of questions in get_actual_responses. Now formatting is done in response_summary rather than get_actual_response which returns an array of unformatted strings.

Have fixed the formatting in responses report and in statistics report to use the correct formatting for the question type.

Created new functions format_responses and format_response. format_responses works on an array and normally just walks through the array calling format_response.