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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user