mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-32217 Setting options->unitgradingtype
This commit is contained in:
parent
9ad535c550
commit
57239949ac
@ -281,7 +281,9 @@ class qtype_numerical extends question_type {
|
||||
} 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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user