Issue Bug Closed

#17428Eval => int will create '0' as value which is wrong

Georg Ringer 06/30/07, 11:15 updated 06/27/08, 10:53

Description

I got a field which holds a duration in ms but it should be at least 1000 (ms = 1s). To check the minimum, I use the range which works fine.
If I wanna check for integer too (eval => int) and I click into the field and leave it again or if I want to delete a value, I always get the value ‘0’. This is a bug because after saving there will be the value 1000 saved (cause of the range checked serverside).

So if the field is empty, just do nothing and if there is a value, check it for int

my configuration
<config><br> <type>input</type><br> <size>3</size><br> <eval>int</eval><br> <range><br> <lower>1000</lower><br> <upper>30000</upper><br> </range><br></config>
(issue imported from #M5876)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.