From 300eee6a45ebbcf879e41dd3122b2b77ca2f50a0 Mon Sep 17 00:00:00 2001 From: Eric Merrill Date: Thu, 3 Oct 2013 08:50:39 -0400 Subject: [PATCH] MDL-9873 question Require question text This commit removes the code that requires the question text for the multianswer question type, as it is a duplicate, and throws errors. --- question/type/multianswer/edit_multianswer_form.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/question/type/multianswer/edit_multianswer_form.php b/question/type/multianswer/edit_multianswer_form.php index cd792f78a1f..8bcdb2b512a 100644 --- a/question/type/multianswer/edit_multianswer_form.php +++ b/question/type/multianswer/edit_multianswer_form.php @@ -88,9 +88,6 @@ class qtype_multianswer_edit_form extends question_edit_form { $mform->removeElement('defaultmark'); $this->confirm = optional_param('confirm', false, PARAM_BOOL); - // Make questiontext a required field for this question type. - $mform->addRule('questiontext', null, 'required', null, 'client'); - // Display the questions from questiontext. if ($questiontext = optional_param_array('questiontext', false, PARAM_RAW)) { $this->questiondisplay = fullclone(qtype_multianswer_extract_question($questiontext));