mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 04:33:13 +01:00
Fixed true/false bug due to new 'correctanswer' field.
This commit is contained in:
parent
ac26175c5c
commit
3bf7621121
@ -122,6 +122,7 @@ function process_tf($xml, &$questions) {
|
||||
$question->feedbacktrue = addslashes(trim(@$thisquestion["#"]["GRADABLE"][0]["#"]["FEEDBACK_WHEN_INCORRECT"][0]["#"]));
|
||||
$question->feedbackfalse = addslashes(trim(@$thisquestion["#"]["GRADABLE"][0]["#"]["FEEDBACK_WHEN_CORRECT"][0]["#"]));
|
||||
}
|
||||
$question->correctanswer = $question->answer;
|
||||
$questions[] = $question;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user