form_validate_number() excludes countries that use commas

Created on 8 April 2013, almost 12 years ago
Updated 16 September 2024, 6 months ago

form_validate_number uses PHP's is_numeric(), which checks if a value is numeric based on its own float notation: digits with a period as a decimal separator. We exclude about half the world's countries, where commas are the standard.

πŸ› Bug report
Status

Closed: works as designed

Version

11.0 πŸ”₯

Component
FormΒ  β†’

Last updated 26 minutes ago

Created by

πŸ‡¬πŸ‡§United Kingdom Xano Southampton

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡³πŸ‡ΏNew Zealand quietone

    The first comment and last comment state this is about browsers, not Drupal. In the middle there is discussion of adding a comment but there was no agreement. Looking at the code myself I don't see the need to add a comment or further explanation. Based on that and the lack of interest in this issue in 11 years, I am going to close this.
    If that is wrong, reopen the issue, by setting the status to 'Active', and add a comment.

    Thanks!

Production build 0.71.5 2024