Merge branch 'MDL-32217_21' of git://github.com/ppichet/moodle into MOODLE_21_STABLE

This commit is contained in:
Dan Poltawski
2012-04-11 09:27:46 +08:00
+3 -1
View File
@@ -281,7 +281,9 @@ class qtype_numerical extends question_type {
} else if (isset($question->showunits)) {
// Updated import, e.g. Moodle XML.
$options->showunits = $question->showunits;
if (isset($question->unitgradingtype)) {
$options->unitgradingtype = $question->unitgradingtype;
}
} else {
// Legacy import.
if ($defaultunit = $this->get_default_numerical_unit($question)) {