Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MDL-32217_22 Setting options->unitgradingtype
Signed-off-by: ppichet <pichet.pierre@uqam.ca>
  • Loading branch information
ppichet committed Apr 10, 2012
1 parent f24ff8f commit d8c5082
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion question/type/numerical/questiontype.php
Expand Up @@ -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)) {
Expand Down

0 comments on commit d8c5082

Please sign in to comment.