Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-32217_21 Setting options->unitgradingtype

Signed-off-by: ppichet <pichet.pierre@uqam.ca>
  • Loading branch information...
commit ff4d87739d7b9b63fcb4fdf998ce6a878676e61e 1 parent 4b3ee4f
@ppichet ppichet authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 question/type/numerical/questiontype.php
View
4 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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.