Menu

#182 Wrong feedback in TF question export

claroline_1.9
closed
5
2012-11-12
2010-03-30
deelux
No

When exporting in PHP a True False question, the feedback for the true question is the false one... and there is no feedback for the false answer.

The wrong line is in claroline/exercice/exercice.php line 297 - 300:
$questionList[ $_id ]['answers'][0]['answer'] = get_lang('True');
$questionList[ $_id ]['answers'][0]['feedback'] = $questionObj->answer->trueFeedback;
$questionList[ $_id ]['answers'][1]['answer'] = get_lang('False');
$questionList[ $_id ]['answers'][0]['feedback'] = $questionObj->answer->falseFeedback;

the last line should contain [1]

Discussion


Log in to post a comment.