FIX extrafields price and double were lost during a failed post.

This commit is contained in:
Laurent Destailleur 2018-04-23 22:56:40 +02:00
parent 0a5e606937
commit fdb3a11f34

View File

@ -1779,13 +1779,14 @@ class ExtraFields
} }
else if (in_array($key_type,array('price','double'))) 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); $value_key=price2num($value_arr);
} }
else else
{ {
$value_key=GETPOST("options_".$key); $value_key=GETPOST("options_".$key);
} }
$object->array_options["options_".$key]=$value_key; $object->array_options["options_".$key]=$value_key;
} }