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 7a73915e92
commit 2b00ae9e92

View File

@ -1671,7 +1671,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')
{