[BUGFIX] Resetting of input field to default when having a range fails
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_tcemain.php
index 529be57..7b05806 100644 (file)
@@ -1186,7 +1186,7 @@ class t3lib_TCEmain {
                }
 
                        // Checking range of value:
-               if ($tcaFieldConf['range'] && $value != $tcaFieldConf['checkbox'] && $value != $tcaFieldConf['default']) {
+               if ($tcaFieldConf['range'] && $value != $tcaFieldConf['checkbox'] && intval($value) !== intval($tcaFieldConf['default'])) {
                        if (isset($tcaFieldConf['range']['upper']) && $value > $tcaFieldConf['range']['upper']) {
                                $value = $tcaFieldConf['range']['upper'];
                        }