mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
MDL-26714 qtype_multianswer regression from the previous commit for numerical subquestions.
This commit is contained in:
parent
b8df9414bd
commit
4c51e56d98
1 changed files with 11 additions and 3 deletions
|
@ -617,9 +617,17 @@ class embedded_cloze_qtype extends default_questiontype {
|
||||||
$teststateforquestion->responses[''] = '';
|
$teststateforquestion->responses[''] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$QTYPES[$wrapped->qtype]->compare_responses($wrapped,
|
if ($wrapped->qtype == 'numerical') {
|
||||||
$stateforquestion, $teststateforquestion)) {
|
// Use shortanswer
|
||||||
return false;
|
if (!$QTYPES['shortanswer']->compare_responses($wrapped,
|
||||||
|
$stateforquestion, $teststateforquestion)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (!$QTYPES[$wrapped->qtype]->compare_responses($wrapped,
|
||||||
|
$stateforquestion, $teststateforquestion)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue