diff --git a/question/type/edit_question_form.php b/question/type/edit_question_form.php index 80430b1ac6d..a186eba610d 100644 --- a/question/type/edit_question_form.php +++ b/question/type/edit_question_form.php @@ -188,6 +188,7 @@ abstract class question_edit_form extends question_wizard_form { $mform->addElement('editor', 'questiontext', get_string('questiontext', 'question'), array('rows' => 15), $this->editoroptions); $mform->setType('questiontext', PARAM_RAW); + $mform->addRule('questiontext', null, 'required', null, 'client'); $mform->addElement('text', 'defaultmark', get_string('defaultmark', 'question'), array('size' => 7));