From 51895f52378d86efc906426c661d749e84029933 Mon Sep 17 00:00:00 2001 From: aydreeihn <adriane@enhancesoft.com> Date: Thu, 24 Jan 2019 09:55:55 -0600 Subject: [PATCH] Oops: Modify 0 in Short Answer Field Fix Fixes an unexpected side effect of Pull Request #4652 --- include/class.forms.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/class.forms.php b/include/class.forms.php index 0b54f965e..937a999a4 100644 --- a/include/class.forms.php +++ b/include/class.forms.php @@ -1480,8 +1480,7 @@ class TextboxField extends FormField { } function display($value) { - $value = $value ?: $this->value; - return ($value == 0) ? '0' : Format::htmlchars($this->toString($value)); + return ($value == '0') ? '0' : Format::htmlchars($this->toString($value ?: $this->value)); } } -- GitLab