From fdb3a11f3492ce30bae8380fd29163d6b8812c22 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 23 Apr 2018 22:56:40 +0200 Subject: [PATCH] FIX extrafields price and double were lost during a failed post. --- htdocs/core/class/extrafields.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/extrafields.class.php b/htdocs/core/class/extrafields.class.php index 7d6de9bda7f..2216c0fd7aa 100644 --- a/htdocs/core/class/extrafields.class.php +++ b/htdocs/core/class/extrafields.class.php @@ -1779,13 +1779,14 @@ class ExtraFields } else if (in_array($key_type,array('price','double'))) { - $value_arr=GETPOST("options_".$key); + $value_arr=GETPOST("options_".$key, 'alpha'); $value_key=price2num($value_arr); } else { $value_key=GETPOST("options_".$key); } + $object->array_options["options_".$key]=$value_key; }