Permalink
Browse files

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

…OODLE_21_STABLE
  • Loading branch information...
2 parents e17f0d3 + ff4d877 commit d08845f37a199a4b1c8231c56a7bd536a1a03ef3 @danpoltawski danpoltawski committed Apr 11, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 question/type/numerical/questiontype.php
@@ -281,7 +281,9 @@ public function save_unit_options($question) {
} 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)) {

0 comments on commit d08845f

Please sign in to comment.