Multiple Choice -- Multiple Answer problem?

Multiple Choice -- Multiple Answer problem?

by Marty Gilbert -
Number of replies: 2
Picture of Core developers
Has anyone else had this behavior?

I have a multiple choice/multiple answer question on a feedback activity. It seems that it *never* gets all of the choices, but gets one less. If the user checks 3 boxes, it reports 2.

I'm using Moodle 1.9.1+ with Feedback_19 installed.

Any help is appreciated..

--Marty
Average of ratings: -
In reply to Marty Gilbert

Re: Multiple Choice -- Multiple Answer problem?

by Thomas Wassong -
Hi,

there is a very easy way to solve this problem (for feedback 1.9).

Look at the file mod/feedback/item/multichoice/lib.php

an there the line 386. Here you find

for($i = 1; $i < sizeof($arrvals) + 1; $i++) {

just change this to

for($i = 1; $i < sizeof($arrvals) ; $i++) {


Now your Problem is solved.

Greetings,
Thomas
In reply to Thomas Wassong

Re: Multiple Choice -- Multiple Answer problem?

by Andreas Grabs -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Translators
Hi Thomas,

thank you for solving this. I have included it into the current download.
I also fixed some issues for the numeric item. It now supports positive and negative decimal numbers.

Best regards from Berlin
Andreas