qformat_gift MDL-26059 fails to import truefalse questions with answer true.
This commit is contained in:
@@ -392,7 +392,7 @@ class qformat_gift extends qformat_default {
|
||||
list($answer, $wrongfeedback, $rightfeedback) =
|
||||
$this->split_truefalse_comment($answertext, $question->questiontextformat);
|
||||
|
||||
if ($answer == "T" OR $answer == "TRUE") {
|
||||
if ($answer['text'] == "T" OR $answer['text'] == "TRUE") {
|
||||
$question->correctanswer = 1;
|
||||
$question->feedbacktrue = $rightfeedback;
|
||||
$question->feedbackfalse = $wrongfeedback;
|
||||
|
||||
Reference in New Issue
Block a user