mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-32217_22 Setting options->unitgradingtype
Signed-off-by: ppichet <pichet.pierre@uqam.ca>
This commit is contained in:
parent
f24ff8f8d4
commit
d8c5082b76
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue