From 242ab5d5aadfc3688fee4a454ae3751c158639e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Mon, 20 May 2024 22:06:36 +0200 Subject: [PATCH 1/2] MDL-76765 question: Show multiple tries options correctly. --- question/type/edit_question_form.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/question/type/edit_question_form.php b/question/type/edit_question_form.php index 3074247779c..664d0398a63 100644 --- a/question/type/edit_question_form.php +++ b/question/type/edit_question_form.php @@ -477,8 +477,7 @@ abstract class question_edit_form extends question_wizard_form { $element->setValue(array('text' => get_string($feedbackname.'default', 'question'))); if ($withshownumpartscorrect && $feedbackname == 'partiallycorrectfeedback') { - $mform->addElement('advcheckbox', 'shownumcorrect', - get_string('options', 'question'), + $mform->addElement('advcheckbox', 'shownumcorrect', '', get_string('shownumpartscorrectwhenfinished', 'question')); $mform->setDefault('shownumcorrect', true); } @@ -502,8 +501,8 @@ abstract class question_edit_form extends question_wizard_form { $optionelements = array(); if ($withclearwrong) { - $optionelements[] = $mform->createElement('advcheckbox', 'hintclearwrong', - get_string('options', 'question'), get_string('clearwrongparts', 'question')); + $optionelements[] = $mform->createElement('advcheckbox', 'hintclearwrong', '', + get_string('clearwrongparts', 'question')); } if ($withshownumpartscorrect) { $optionelements[] = $mform->createElement('advcheckbox', 'hintshownumcorrect', '', From 462b8f9861b86e89edd2c69aa52009a4740992d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Mon, 20 May 2024 22:01:13 +0200 Subject: [PATCH 2/2] MDL-76765 qtype_ddmarker: Show multiple tries options correctly. --- question/type/ddmarker/edit_ddmarker_form.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/question/type/ddmarker/edit_ddmarker_form.php b/question/type/ddmarker/edit_ddmarker_form.php index e6cd7d0682d..402bdf6ea99 100644 --- a/question/type/ddmarker/edit_ddmarker_form.php +++ b/question/type/ddmarker/edit_ddmarker_form.php @@ -128,8 +128,7 @@ class qtype_ddmarker_edit_form extends qtype_ddtoimage_edit_form_base { array('rows' => 5), $this->editoroptions); $repeatedoptions['hint']['type'] = PARAM_RAW; - $repeated[] = $mform->createElement('checkbox', 'hintshownumcorrect', - get_string('options', 'question'), + $repeated[] = $mform->createElement('checkbox', 'hintshownumcorrect', '', get_string('shownumpartscorrect', 'question')); $repeated[] = $mform->createElement('checkbox', 'hintoptions', '',