Create new field type text with filter float https://user-images.githubusercontent.com/1752513/102925622-05516100-4494-11eb-925a-b66ba5b42cfd.png
Use this field with 1,99
this filter lets you insert 1,99 after submission your expected result is 1,99
this text filter lets you insert 1,99 but after submission actual result is 1
Safari on MacOS
PHP 8.0
The problem is you get no warning. The comma instead of the point in float values.
Maybe joomla text float filter should substituted comma by dot then insertion is done?
Maybe new joomla text filter is required to solve this problem to not confuse joomla users?
Labels |
Added:
?
|
Looks like the FLOAT filterinput is not using the specific language definitions.
For French it is
DECIMALS_SEPARATOR=","
THOUSANDS_SEPARATOR=" "
for en-GB
DECIMALS_SEPARATOR="."
THOUSANDS_SEPARATOR=","
for German
DECIMALS_SEPARATOR=","
THOUSANDS_SEPARATOR="."
Forget it. I understand that it would not be correct here.
Maybe new joomla text filter is required to solve this problem to not confuse joomla users?
Labels |
Added:
No Code Attached Yet
bug
Removed: ? |
same: #31756