diff --git a/question/type/numerical/display.html b/question/type/numerical/display.html index 434f36c02bc..cb3dff44191 100644 --- a/question/type/numerical/display.html +++ b/question/type/numerical/display.html @@ -10,7 +10,7 @@
- +
@@ -45,7 +45,7 @@ options->showunits == NUMERICALQUESTIONUNITTEXTINPUTDISPLAY ) {// display unit text input ?> -
+
@@ -127,7 +127,7 @@ $classunitvalue = 0 ; $type = 'type="radio"'; // $nameunit = "name=\"".$question->name_prefix;//."unit\""; - if (isset($state->responses['unit']) && $state->responses['unit'] != '' ){ + if ($response != '' && isset($state->responses['unit']) && $state->responses['unit'] != '' ){ // we have a unit response // this unit is the one chosen // test if the unit give a valid response @@ -213,9 +213,10 @@
put a div to enclose the answer and unit elements ?> - +