mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-11867 setting real null when response is null in calculated question
This commit is contained in:
parent
1203d9d095
commit
34018d81aa
@ -142,7 +142,7 @@ class question_shortanswer_qtype extends default_questiontype {
|
||||
|
||||
/// Print input controls
|
||||
|
||||
if (isset($state->responses[''])) {
|
||||
if (isset($state->responses['']) && $state->responses['']!='') {
|
||||
$value = ' value="'.s($state->responses[''], true).'" ';
|
||||
} else {
|
||||
$value = ' value="" ';
|
||||
|
Loading…
x
Reference in New Issue
Block a user