From 7038944105887f79c56b58a31c465808cff36014 Mon Sep 17 00:00:00 2001 From: Charles Fulton Date: Mon, 7 Feb 2011 09:50:06 -0800 Subject: [PATCH] MDL-26299: missing break causes incorrect value for unitrole --- question/type/numerical/questiontype.php | 1 + 1 file changed, 1 insertion(+) diff --git a/question/type/numerical/questiontype.php b/question/type/numerical/questiontype.php index 5d8373740b1..130339d2dc1 100644 --- a/question/type/numerical/questiontype.php +++ b/question/type/numerical/questiontype.php @@ -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 ;