Actions
Bug #17428
closedEval => int will create '0' as value which is wrong
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2007-06-30
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.1
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
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>
<type>input</type>
<size>3</size>
<eval>int</eval>
<range>
<lower>1000</lower>
<upper>30000</upper>
</range>
</config>
(issue imported from #M5876)
Actions