Merge branch 'MDL-9873' of https://github.com/merrill-oakland/moodle
authorMarina Glancy <marina@moodle.com>
Tue, 1 Oct 2013 23:20:52 +0000 (09:20 +1000)
committerMarina Glancy <marina@moodle.com>
Tue, 1 Oct 2013 23:20:52 +0000 (09:20 +1000)
question/type/edit_question_form.php

index 80430b1..a186eba 100644 (file)
@@ -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));