Merge branch 'MDL-37465' of git://github.com/colchambers/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 29 Jan 2013 18:19:29 +0000 (19:19 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 29 Jan 2013 18:19:29 +0000 (19:19 +0100)
question/type/edit_question_form.php

index f9f8872..1af551b 100644 (file)
@@ -366,6 +366,7 @@ abstract class question_edit_form extends question_wizard_form {
                 $mform->addElement('advcheckbox', 'shownumcorrect',
                         get_string('options', 'question'),
                         get_string('shownumpartscorrectwhenfinished', 'question'));
+                $mform->setDefault('shownumcorrect', true);
             }
         }
     }