This commit is contained in:
Frédéric FRANCE 2022-09-21 20:09:52 +02:00
parent 3d0baa79cd
commit 138ab46237

View File

@ -1099,7 +1099,7 @@ class ExtraFields
} elseif ($type == 'pricecy') {
$currency = $conf->currency;
if (!empty($value)) {
// $value in memory is a php numeric, we format it into user number format.
// $value in memory is a php string like '10.01:USD'
$pricetmp = explode(':', $value);
$currency = !empty($pricetmp[1]) ? $pricetmp[1] : $conf->currency;
$value = price($pricetmp[0]);
@ -1644,7 +1644,7 @@ class ExtraFields
} elseif ($type == 'pricecy') {
$currency = $conf->currency;
if (!empty($value)) {
// $value in memory is a php numeric, we format it into user number format.
// $value in memory is a php string like '0.01:EUR'
$pricetmp = explode(':', $value);
$currency = !empty($pricetmp[1]) ? $pricetmp[1] : $conf->currency;
$value = $pricetmp[0];