mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-29175 use new optinal_param_array in cloze question verification
This commit is contained in:
parent
5d2db8acc8
commit
b8cc71e724
@ -91,9 +91,8 @@ class qtype_multianswer_edit_form extends question_edit_form {
|
||||
$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(
|
||||
optional_param('questiontext', '', PARAM_RAW)));
|
||||
if ($questiontext = optional_param_array('questiontext', false, PARAM_RAW)) {
|
||||
$this->questiondisplay = fullclone(qtype_multianswer_extract_question($questiontext));
|
||||
|
||||
} else {
|
||||
if (!$this->reload && !empty($this->savedquestiondisplay->id)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user