From 68f29c9ec463711c53565748b7dc13023cbfd10f Mon Sep 17 00:00:00 2001 From: Susanne Moog <typo3@susannemoog.de> Date: Thu, 20 Jan 2011 11:11:56 +0000 Subject: [PATCH] Fixed bug #17116: All images get reduced to 25x25px upon saving if no size is set git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10155 709f56b5-9817-0410-a4d7-c38de5d9e867 --- ChangeLog | 4 ++++ t3lib/class.t3lib_tcemain.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c344bedc4e13..1f4ad7a45c01 100755 --- 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 diff --git a/t3lib/class.t3lib_tcemain.php b/t3lib/class.t3lib_tcemain.php index 2fc2c521bcad..41ebcb7475c7 100644 --- a/t3lib/class.t3lib_tcemain.php +++ b/t3lib/class.t3lib_tcemain.php @@ -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']; } -- GitLab