MDL-37465 Combined feedback: Num correct responses ticked by default
authorColin Chambers <c.chambers@open.ac.uk>
Fri, 25 Jan 2013 08:48:32 +0000 (08:48 +0000)
committerColin Chambers <c.chambers@open.ac.uk>
Fri, 25 Jan 2013 11:15:50 +0000 (11:15 +0000)
question/type/edit_question_form.php

index da8ad92..5cfecac 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);
             }
         }
     }