No Code Attached Yet bug
avatar chnnst
chnnst
23 Dec 2020

Steps to reproduce the issue

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

Expected result

this filter lets you insert 1,99 after submission your expected result is 1,99

Actual result

this text filter lets you insert 1,99 but after submission actual result is 1

System information (as much as possible)

Safari on MacOS
PHP 8.0

Additional comments

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?

avatar chnnst chnnst - open - 23 Dec 2020
avatar joomla-cms-bot joomla-cms-bot - change - 23 Dec 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 23 Dec 2020
avatar gostn
gostn - comment - 23 Dec 2020

same: #31756

avatar infograf768
infograf768 - comment - 23 Dec 2020

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="."

avatar infograf768
infograf768 - comment - 23 Dec 2020

Forget it. I understand that it would not be correct here.

avatar chnnst
chnnst - comment - 26 Dec 2020

Maybe new joomla text filter is required to solve this problem to not confuse joomla users?

avatar Hackwar Hackwar - change - 20 Feb 2023
Labels Added: No Code Attached Yet bug
Removed: ?
avatar Hackwar Hackwar - labeled - 20 Feb 2023

Add a Comment

Login with GitHub to post a comment