From 646be9b9843035c193a751d1c09e62bf5f11edf9 Mon Sep 17 00:00:00 2001 From: Florian Henry Date: Sun, 9 Jun 2013 16:56:29 +0200 Subject: [PATCH 1/2] Fix bug on extrafeild type price and double --- htdocs/core/class/extrafields.class.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/extrafields.class.php b/htdocs/core/class/extrafields.class.php index 8c5f485de32..146237122ca 100755 --- a/htdocs/core/class/extrafields.class.php +++ b/htdocs/core/class/extrafields.class.php @@ -622,7 +622,7 @@ class ExtraFields $out = $formstat->select_date($value, 'options_'.$key, $showtime, $showtime, $required, '', 1, 1, 1, 0, 1); //$out=''; } - elseif (in_array($type,array('int','double'))) + elseif (in_array($type,array('int'))) { $tmp=explode(',',$size); $newsize=$tmp[0]; @@ -660,6 +660,10 @@ class ExtraFields { $out=' '.$langs->getCurrencySymbol($conf->currency); } + elseif ($type == 'double') + { + $out=' '; + } elseif ($type == 'select') { $out='