Merge branch 'MDL-26714_master' of git://github.com/timhunt/moodle

This commit is contained in:
Eloy Lafuente (stronk7)
2011-05-02 11:46:10 +02:00
+11 -3
View File
@@ -617,9 +617,17 @@ class embedded_cloze_qtype extends default_questiontype {
$teststateforquestion->responses[''] = '';
}
if (!$QTYPES[$wrapped->qtype]->compare_responses($wrapped,
$stateforquestion, $teststateforquestion)) {
return false;
if ($wrapped->qtype == 'numerical') {
// Use shortanswer
if (!$QTYPES['shortanswer']->compare_responses($wrapped,
$stateforquestion, $teststateforquestion)) {
return false;
}
} else {
if (!$QTYPES[$wrapped->qtype]->compare_responses($wrapped,
$stateforquestion, $teststateforquestion)) {
return false;
}
}
}