MDL-26299: missing break causes incorrect value for unitrole

This commit is contained in:
Charles Fulton 2011-02-07 09:50:06 -08:00
parent 54b7b5993f
commit 7038944105

View file

@ -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 ;