Bug #37302
NumberValidator
Status: | Needs Feedback | Start date: | 2012-05-19 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Carsten Bleicker | % Done: | 0% |
|
Category: | Validation | |||
Target version: | - | |||
PHP Version: | Complexity: | |||
Has patch: | No | Affected Flow version: | FLOW3 1.1.0 beta 1 |
Description
Trying to use the NumberValidator and playing around with the option formatLength.
but an exception is thrown:
#1280218995: Number format was not found. Please check whether CLDR repository is valid
am i doing something wrong or is the cldr a little bit incomplete?
what i am trying to do is just validate an property value against:
@FLOW3\Validate(type="Number", options={ "formatType"="currency", "formatLength"="short"})
defautl format lengts seems to be working but it allows me to set to many decimals.
f.e. it allows xxx,xxx but i want to allow only xxx,xx
the second thing is, that the floatConverter should also use the numbers parser
to convert user inputs on a german page with xxx,xx to xxx.xx ?
Kind regards
carsten
History
#1 Updated by Adrian Föder about 2 years ago
- Status changed from New to Needs Feedback
- Assigned To set to Carsten Bleicker
Carsten, is this still recent? A couple of things changed anyways in the meantime...