mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-26299: missing break causes incorrect value for unitrole
This commit is contained in:
parent
54b7b5993f
commit
7038944105
1 changed files with 1 additions and 0 deletions
|
@ -1151,6 +1151,7 @@ class question_numerical_qtype extends question_shortanswer_qtype {
|
|||
break;
|
||||
case 2 : // NUMERICALQUESTIONUNITTEXTDISPLAY
|
||||
$default_values['unitrole'] = 1 ;
|
||||
break;
|
||||
case 3 : // NUMERICALQUESTIONUNITNODISPLAY
|
||||
$default_values['unitrole'] = 0 ;
|
||||
// $default_values['showunits1'] = $question->options->showunits ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue