1
0
mirror of https://github.com/moodle/moodle.git synced 2025-05-11 10:45:38 +02:00
This commit is contained in:
Marina Glancy 2013-10-02 09:20:52 +10:00
commit a929e5e83d

@ -188,6 +188,7 @@ abstract class question_edit_form extends question_wizard_form {
$mform->addElement('editor', 'questiontext', get_string('questiontext', 'question'), $mform->addElement('editor', 'questiontext', get_string('questiontext', 'question'),
array('rows' => 15), $this->editoroptions); array('rows' => 15), $this->editoroptions);
$mform->setType('questiontext', PARAM_RAW); $mform->setType('questiontext', PARAM_RAW);
$mform->addRule('questiontext', null, 'required', null, 'client');
$mform->addElement('text', 'defaultmark', get_string('defaultmark', 'question'), $mform->addElement('text', 'defaultmark', get_string('defaultmark', 'question'),
array('size' => 7)); array('size' => 7));