Permalink
Browse files

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

…OODLE_22_STABLE
  • Loading branch information...
2 parents 999f7e3 + d8c5082 commit b0a994f4603fb51b63896bbb630daaf183788137 @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 b0a994f

Please sign in to comment.