Permalink
Browse files

MDL-32217 Setting options->unitgradingtype

  • Loading branch information...
1 parent 9ad535c commit 57239949ac0ebed8d2cb4d1223a6f110eea1265b @ppichet ppichet committed Apr 4, 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 5723994

Please sign in to comment.