Bug #37302

NumberValidator

Added by Carsten Bleicker 12 months ago.

Status:New Start date:2012-05-19
Priority:Should have Due date:
Assignee:- % Done:

0%

Category:Validation
Target version:-
PHP Version: Complexity:
Has patch:No FLOW3 version affected:FLOW3 1.1.0 beta 1
Votes: 0

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

Also available in: Atom PDF