mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-20636 Notice when editing shortanswer questions. #339
This commit is contained in:
parent
330c1148a4
commit
3f469e808b
1 changed files with 5 additions and 1 deletions
|
@ -60,7 +60,11 @@ class qtype_shortanswer_edit_form extends question_edit_form {
|
||||||
$question = parent::data_preprocessing($question);
|
$question = parent::data_preprocessing($question);
|
||||||
$question = $this->data_preprocessing_answers($question);
|
$question = $this->data_preprocessing_answers($question);
|
||||||
$question = $this->data_preprocessing_hints($question);
|
$question = $this->data_preprocessing_hints($question);
|
||||||
|
|
||||||
|
if (!empty($question->options)) {
|
||||||
$question->usecase = $question->options->usecase;
|
$question->usecase = $question->options->usecase;
|
||||||
|
}
|
||||||
|
|
||||||
return $question;
|
return $question;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue