2
0
forked from Wavyzz/dolibarr

Use param 2 for price2num with GETPOSTFLOAT

This commit is contained in:
Laurent Destailleur
2024-01-23 17:02:51 +01:00
parent bd2b39c543
commit 7c114245e9

View File

@@ -970,7 +970,7 @@ function GETPOSTINT($paramname, $method = 0)
function GETPOSTFLOAT($paramname, $rounding = '')
{
// price2num() is used to sanitize any valid user input (such as "1 234.5", "1 234,5", "1'234,5", "1·234,5", "1,234.5", etc.)
return (float) price2num(GETPOST($paramname), $rounding);
return (float) price2num(GETPOST($paramname), $rounding, 2);
}