Bug #37302

NumberValidator

Added by Carsten Bleicker over 9 years ago. Updated over 8 years ago.

Status:
Needs Feedback
Priority:
Should have
Category:
Validation
Target version:
-
Start date:
2012-05-19
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

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

#1

Updated by Adrian Föder over 8 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Carsten Bleicker

Carsten, is this still recent? A couple of things changed anyways in the meantime...

Also available in: Atom PDF