Merge branch 'mdl-26299' of git://github.com/mackensen/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 14 Feb 2011 17:23:56 +0000 (18:23 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 14 Feb 2011 17:23:56 +0000 (18:23 +0100)
question/type/numerical/questiontype.php

index 5d83737..130339d 100644 (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 ;