Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-30186 qtype editing forms should use advcheckbox.

  • Loading branch information...
commit 256a93c9b54388e2844d33244a497af5bb02e90d 1 parent e25ecdf
@timhunt timhunt authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 question/type/edit_question_form.php
View
6 question/type/edit_question_form.php
@@ -344,7 +344,7 @@ protected function add_combined_feedback_fields($withshownumpartscorrect = false
$mform->setType($feedbackname, PARAM_RAW);
if ($withshownumpartscorrect && $feedbackname == 'partiallycorrectfeedback') {
- $mform->addElement('checkbox', 'shownumcorrect',
+ $mform->addElement('advcheckbox', 'shownumcorrect',
get_string('options', 'question'),
get_string('shownumpartscorrect', 'question'));
}
@@ -361,11 +361,11 @@ protected function get_hint_fields($withclearwrong = false, $withshownumpartscor
$repeatedoptions['hint']['type'] = PARAM_RAW;
if ($withclearwrong) {
- $repeated[] = $mform->createElement('checkbox', 'hintclearwrong',
+ $repeated[] = $mform->createElement('advcheckbox', 'hintclearwrong',
get_string('options', 'question'), get_string('clearwrongparts', 'question'));
}
if ($withshownumpartscorrect) {
- $repeated[] = $mform->createElement('checkbox', 'hintshownumcorrect', '',
+ $repeated[] = $mform->createElement('advcheckbox', 'hintshownumcorrect', '',
get_string('shownumpartscorrect', 'question'));
}
Please sign in to comment.
Something went wrong with that request. Please try again.