Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-11867 setting real null when response is null in calculated quest…

…ion merged from

 head
  • Loading branch information...
commit 5e0da4b5ee566807d51327d0cabca45f2cfa9ba2 1 parent 4b952ed
pichetp authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  question/type/shortanswer/questiontype.php
View
2  question/type/shortanswer/questiontype.php
@@ -138,7 +138,7 @@ function print_question_formulation_and_controls(&$question, &$state, $cmoptions
/// Print input controls
- if (isset($state->responses[''])) {
+ if (isset($state->responses['']) && $state->responses['']!='' ) {
$value = ' value="'.s($state->responses[''], true).'" ';
} else {
$value = ' value="" ';
Please sign in to comment.
Something went wrong with that request. Please try again.