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.
This commit is contained in:
Eric Merrill
2013-10-03 08:50:39 -04:00
parent 363f82243b
commit 300eee6a45
@@ -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));