Skip to content

Commit

Permalink
Merge branch 'MDL-30186_21' of git://github.com/timhunt/moodle into M…
Browse files Browse the repository at this point in the history
…OODLE_21_STABLE
  • Loading branch information
stronk7 committed Nov 16, 2011
2 parents 96ec350 + 256a93c commit 830969c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions question/type/edit_question_form.php
Expand Up @@ -344,7 +344,7 @@ protected function add_combined_feedback_fields($withshownumpartscorrect = false
$mform->setType($feedbackname, PARAM_RAW); $mform->setType($feedbackname, PARAM_RAW);


if ($withshownumpartscorrect && $feedbackname == 'partiallycorrectfeedback') { if ($withshownumpartscorrect && $feedbackname == 'partiallycorrectfeedback') {
$mform->addElement('checkbox', 'shownumcorrect', $mform->addElement('advcheckbox', 'shownumcorrect',
get_string('options', 'question'), get_string('options', 'question'),
get_string('shownumpartscorrect', 'question')); get_string('shownumpartscorrect', 'question'));
} }
Expand All @@ -361,11 +361,11 @@ protected function get_hint_fields($withclearwrong = false, $withshownumpartscor
$repeatedoptions['hint']['type'] = PARAM_RAW; $repeatedoptions['hint']['type'] = PARAM_RAW;


if ($withclearwrong) { if ($withclearwrong) {
$repeated[] = $mform->createElement('checkbox', 'hintclearwrong', $repeated[] = $mform->createElement('advcheckbox', 'hintclearwrong',
get_string('options', 'question'), get_string('clearwrongparts', 'question')); get_string('options', 'question'), get_string('clearwrongparts', 'question'));
} }
if ($withshownumpartscorrect) { if ($withshownumpartscorrect) {
$repeated[] = $mform->createElement('checkbox', 'hintshownumcorrect', '', $repeated[] = $mform->createElement('advcheckbox', 'hintshownumcorrect', '',
get_string('shownumpartscorrect', 'question')); get_string('shownumpartscorrect', 'question'));
} }


Expand Down

0 comments on commit 830969c

Please sign in to comment.