From 0d4c63d7fbda648c7d48717373e9f99dccb0248e Mon Sep 17 00:00:00 2001 From: tjhunt Date: Thu, 25 Oct 2007 09:43:06 +0000 Subject: [PATCH] MDL-11825 - Force penaltyfactor to 1 for truefalse questions on GIFT import, as is done on the editing form. Merged from MOODLE_18_STABLE. --- question/format/gift/format.php | 1 + 1 file changed, 1 insertion(+) diff --git a/question/format/gift/format.php b/question/format/gift/format.php index 16ce9e54ceed7..ece45f46adf17 100755 --- a/question/format/gift/format.php +++ b/question/format/gift/format.php @@ -380,6 +380,7 @@ function readquestion($lines) { $question->feedbacktrue = $feedback['wrong']; } + $question->penalty = 1; $question->correctanswer = $question->answer; return $question;