Fixed bug #17116: All images get reduced to 25x25px upon saving if no size is set
authorSusanne Moog <typo3@susannemoog.de>
Thu, 20 Jan 2011 11:11:56 +0000 (11:11 +0000)
committerSusanne Moog <typo3@susannemoog.de>
Thu, 20 Jan 2011 11:11:56 +0000 (11:11 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10155 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tcemain.php

index c344bed..1f4ad7a 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-01-20  Susanne Moog  <typo3@susanne-moog.de>
+
+       * Fixed bug #17116: All images get reduced to 25x25px upon saving if no size is set
+
 2011-01-20  Steffen Kamper  <steffen@typo3.org>
 
        * Fixed bug #17162: Missing localization in t3lib_tsstyleconfig 
index 2fc2c52..41ebcb7 100644 (file)
@@ -1352,7 +1352,7 @@ class t3lib_TCEmain {
                }
 
                        // Checking range of value:
-               if ($tcaFieldConf['range'] && $value != $tcaFieldConf['checkbox']) { // If value is not set to the allowed checkbox-value then it is checked against the ranges
+               if ($tcaFieldConf['range'] && $value != $tcaFieldConf['checkbox'] && $value != $tcaFieldConf['default']) {
                        if (isset($tcaFieldConf['range']['upper']) && $value > $tcaFieldConf['range']['upper']) {
                                $value = $tcaFieldConf['range']['upper'];
                        }