Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#3041 closed defect (worksforme)

NumberTextbox does not know how to handle decimals

Reported by: joose Owned by: Adam Peller
Priority: high Milestone: 0.9
Component: Internationalization Version: 0.9
Keywords: Cc: Douglas Hays
Blocked By: Blocking:

Description (last modified by Adam Peller)

NumberTextbox? does not know how to handle decimals, atleast when decimal separator is something else than "." like ",".

I modified test_validate.html so that constraints={min:0,max:120}

error message I get with say: 50,12 is "This value is out of range". And it seems that 10,1 == ok because widget thinks it's value is 101. but 10,10 is out of range, because widget thinks it's 1010.

Change History (2)

comment:1 Changed 15 years ago by Adam Peller

Cc: Douglas Hays added
Description: modified (diff)
Resolution: worksforme
Status: newclosed

Ok, took me a while to figure this one out. It's because there was a setting of digit="true" which strips out anything which isn't a 0-9, including thousands and decimal separators. I'm not sure I like the feature.

comment:2 Changed 15 years ago by Adam Peller

(In [8638]) Remove digit attribute. Refs #3041.

Note: See TracTickets for help on using tickets.