FIX Extrafields of type price must be '' and not '0' if not defined

This commit is contained in:
Laurent Destailleur 2020-04-28 14:22:52 +02:00
parent 91523b4b64
commit a8740352af

View File

@ -1681,7 +1681,8 @@ class ExtraFields
}
elseif ($type == 'price')
{
$value = price($value, 0, $langs, 0, 0, -1, $conf->currency);
//$value = price($value, 0, $langs, 0, 0, -1, $conf->currency);
if ($value || $value == '0') $value = price($value, 0, $langs, 0, 0, -1);
}
elseif ($type == 'select')
{