Number field input validation does not respect decimal separator (member custom field)
Overview
Hello I think its related to: #4941 (closed) and #4154 (closed)
Reproduction steps
- Under Administer > Localization > Languages, Currency, Locations, set "Thousands Separator" to "." (dot) and "Decimal Delimiter" to "," (comma).
- Create a custom field extending Memberships. Data type: Number. (money works)
- Edit an existing member (or: add a new member). In the number field, enter a number that includes a comma, such as "1,5".
Current behaviour
Validation fails with the error message "Error One of parameters (value: 1,5) is not of the type Float"
Environment information
Tested on https://dmaster.demo.civicrm.org/ 5.72.alpha1