MDL-11825 - Force penaltyfactor to 1 for truefalse questions on GIFT import, as is done on the editing form. Merged from MOODLE_18_STABLE.

This commit is contained in:
tjhunt
2007-10-25 09:43:06 +00:00
parent 9f06454655
commit 0d4c63d7fb
+1
View File
@@ -380,6 +380,7 @@ class qformat_gift extends qformat_default {
$question->feedbacktrue = $feedback['wrong'];
}
$question->penalty = 1;
$question->correctanswer = $question->answer;
return $question;