Issue with Answers and Feedback in 2.0

Issue with Answers and Feedback in 2.0

بذریعہ Mat Dolton -
جوابات کی تعداد: 7

Greetings again,

Having an issue after the upgrade over the weekend to 2.0 with our lessons.  At the lessons we have a series of questions, and this is happening with all questions.

Issue is say it's a True and False question.  The student answers True, and presses next, the next page comes up with the following:

 

True or False - An electrocardiograph (ECG) can identify oxygen deficiencies in blood returning from the lungs.

Your answer : Correct!
Correct!
Now... as you can see it's not actually giving the answer the student gave (Which would be True) but it's giving the feedback instead (which is Correct!)  Does the same for incorrect answers, but also for matching, Multiple choice and Short Answer
HELP!!!  مسکراہٹ
درجہ بندی کا اوسط: -
Mat Dolton کے جواب میں

Re: Issue with Answers and Feedback in 2.0

بذریعہ Karen Welds -

Hi Matt --

Nice to e-meet you. I noticed the same thing a while back and posted it as a bug in Moodle Tracker, number MDL-25823. I understand that if people vote for posted bugs it helps move them up the to-do list, so feel free to give it your vote!

Meanwhile, I've worked around it by using multi-choice to create a True-False question. It shuffles the position of the "True" and "False" answer options, but other than that it works fine.

Karen Welds کے جواب میں

Re: Issue with Answers and Feedback in 2.0

بذریعہ Mat Dolton -

Hey Karen,

Do you know if there has been any progress with this one?  Haven't seen any changes in the bug tracker

Thanks

Mat

Mat Dolton کے جواب میں

Re: Issue with Answers and Feedback in 2.0

بذریعہ Karen Welds -

Hi Mat -

No, haven't heard anything. If Moodle doesn't come through in April, our developer will do the fix himself and I'll pass it on (he's been holding off in the hope that Moodle will be able to get to it, but we have to launch our application pretty soon so it looks like he'll do it after all).

Hope that helps,

Karen

Karen Welds کے جواب میں

Re: Issue with Answers and Feedback in 2.0

بذریعہ Joseph Rézeau -
Core developers کی تصویر Particularly helpful Moodlers کی تصویر Plugin developers کی تصویر Testers کی تصویر Translators کی تصویر

Very easy fix:
in file mod/lesson/pagetypes/truefalse.php
line 98
replace
$result->studentanswer = $result->userresponse = $result->response;
with:
$result->studentanswer = $answer->answer;

Joseph

Joseph Rézeau کے جواب میں

Re: Issue with Answers and Feedback in 2.0

بذریعہ Mat Dolton -

Tried that one mate, all it gave me was a completely blank screen.  Luckily I had saved the original file  مسکراہٹ

Mat Dolton کے جواب میں

Re: Issue with Answers and Feedback in 2.0

بذریعہ Joseph Rézeau -
Core developers کی تصویر Particularly helpful Moodlers کی تصویر Plugin developers کی تصویر Testers کی تصویر Translators کی تصویر

works for me, but of course may depend upon the exact version of the file you are using

of course, you must always save the original file before doing any modification

and you should also turn debug mode ON so that you can display an error message instead of a blank page

if you try again - with debug mode ON - what does it say?

Joseph