[root@dywang html]# diff -urNwbBE moodle/question/type/edit_question_form.php moodle23/question/type/edit_question_form.php
--- moodle/question/type/edit_question_form.php 2012-06-26 01:15:25.000000000 +0800
+++ moodle23/question/type/edit_question_form.php 2014-04-28 10:46:50.721980397 +0800
@@ -329,7 +329,7 @@
} else {
$countanswers = 0;
}
- if ($this->question->formoptions->repeatelements) {
+ if ($this->question->formoptions->repeatelements and $countanswers == 0 ) {
$repeatsatstart = max($minoptions, $countanswers + $addoptions);
} else {
$repeatsatstart = $countanswers;
@@ -395,6 +395,10 @@
0.2500000,
0.2000000,
0.1000000,
+ 0.0500000,
+ 0.0300000,
+ 0.0200000,
+ 0.0100000,
0.0000000
);
if (!empty($this->question->penalty) && !in_array($this->question->penalty, $penalties)) {
@@ -409,7 +413,7 @@
get_string('penaltyforeachincorrecttry', 'question'), $penaltyoptions);
$mform->addRule('penalty', null, 'required', null, 'client');
$mform->addHelpButton('penalty', 'penaltyforeachincorrecttry', 'question');
- $mform->setDefault('penalty', 0.3333333);
+ $mform->setDefault('penalty', 0.2); //dywang
if (isset($this->question->hints)) {
$counthints = count($this->question->hints);