silverstripe / silverstripe-framework

Silverstripe Framework, the MVC framework that powers Silverstripe CMS
https://www.silverstripe.org
BSD 3-Clause "New" or "Revised" License
719 stars 820 forks source link

NumericField doesn't valid properly numbers > 1000 with locale fr-Fr #11162

Closed lekoala closed 3 months ago

lekoala commented 4 months ago

Module version(s) affected

5.1.x

Description

Because the length of the strength is checked, the numeric values with a narrow non breakable spaces as produced by the NumberFormatter class will fail to valid properly

How to reproduce

image

Possible Solution

Additional Context

No response

Validations

PRs

lerni commented 4 months ago

See also https://github.com/silverstripe/silverstripe-framework/issues/10626

lekoala commented 4 months ago

@lerni ouch, i see nobody took care of that for ages ^^ my approach is really simple and should fix it for everyone

GuySartorelli commented 3 months ago

PR merged. This will be automatically tagged by GitHub actions