N°2576 Fix "invalid numeric value" when inserting/updating AttributeDecimal

Was happening on certain configurations with a non EN-US user locale
This commit is contained in:
Pierre Goiffon
2019-11-06 18:15:30 +01:00
parent 45536cf957
commit 7d8181c44f

View File

@@ -2769,7 +2769,7 @@ class AttributeDecimal extends AttributeDBField
if (!is_null($value) && ($value !== ''))
{
$value = sprintf("%01.".$this->Get('decimals')."f", $value);
$value = sprintf("%01.".$this->Get('decimals')."F", $value);
}
return $value; // null or string
}