Skip to content
Snippets Groups Projects
Unverified Commit a362568a authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #4670 from aydreeihn/issue/short-answer-zero

Oops: Modify 0 in Short Answer Field Fix
parents 62805814 51895f52
Branches
Tags
No related merge requests found
......@@ -1480,8 +1480,7 @@ class TextboxField extends FormField {
}
function display($value) {
$value = $value ?: $this->value;
return ($value == 0) ? '&#48' : Format::htmlchars($this->toString($value));
return ($value == '0') ? '&#48' : Format::htmlchars($this->toString($value ?: $this->value));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment