mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merge branch 'MDL-29064' of git://github.com/timhunt/moodle
This commit is contained in:
commit
18c8de5806
@ -87,6 +87,9 @@ class qtype_multianswer_edit_form extends question_edit_form {
|
||||
$mform->removeElement('defaultmark');
|
||||
$this->confirm = optional_param('confirm', '0', PARAM_RAW);
|
||||
|
||||
// Make questiontext a required field for this question type.
|
||||
$mform->addRule('questiontext', null, 'required', null, 'client');
|
||||
|
||||
// display the questions from questiontext;
|
||||
if ("" != optional_param('questiontext', '', PARAM_RAW)) {
|
||||
$this->questiondisplay = fullclone(qtype_multianswer_extract_question(
|
||||
|
Loading…
x
Reference in New Issue
Block a user