From cd13c942ed59f1c8e90ec181bd625806658b85ed Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 9 Apr 2016 10:40:56 +0200 Subject: [PATCH] FIX When editing a numeric that is not defined, we must not show 0 but an empty field. --- htdocs/core/class/html.form.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 2a3afcd6d0d..9a1d5e1f6c3 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -169,7 +169,8 @@ class Form else if (preg_match('/^(numeric|amount)/',$typeofdata)) { $tmp=explode(':',$typeofdata); - $ret.=''; + $valuetoshow=price2num($editvalue?$editvalue:$value); + $ret.=''; } else if (preg_match('/^text/',$typeofdata) || preg_match('/^note/',$typeofdata)) {