[BUGFIX] Remove upper limits of imagewidth & imageheight of tt_content 46/66246/5
authorGeorg Ringer <georg.ringer@gmail.com>
Wed, 21 Oct 2020 21:54:48 +0000 (23:54 +0200)
committerBenni Mack <benni@typo3.org>
Thu, 29 Oct 2020 13:24:24 +0000 (14:24 +0100)
Remove the upper range from the TCA of the fields imagewidth and
imageheight of tt_content. There is no reason to set it to a random
number which might have been high 10 years ago.

Resolves: #92659
Releases: master, 10.4
Change-Id: I3d7db5b67dbd3d523365eaca63d6c9e7a516c3b2
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/66246
Tested-by: Michael Telgkamp <michael.telgkamp@mindscreen.de>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Michael Telgkamp <michael.telgkamp@mindscreen.de>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Benni Mack <benni@typo3.org>
typo3/sysext/core/Documentation/Changelog/10.4.x/Important-92659-ChangeInTCAOfImagewidthImageheight.rst [new file with mode: 0644]
typo3/sysext/frontend/Configuration/TCA/tt_content.php

diff --git a/typo3/sysext/core/Documentation/Changelog/10.4.x/Important-92659-ChangeInTCAOfImagewidthImageheight.rst b/typo3/sysext/core/Documentation/Changelog/10.4.x/Important-92659-ChangeInTCAOfImagewidthImageheight.rst
new file mode 100644 (file)
index 0000000..15b96ad
--- /dev/null
@@ -0,0 +1,29 @@
+.. include:: ../../Includes.txt
+
+=============================================================
+Important: #92659 - Change in TCA of imagewidth & imageheight
+=============================================================
+
+See :issue:`92659`
+
+Description
+===========
+
+The TCA of the fields `imagewidth` and `imageheight` of `tt_content` has been simplified. The following options have been removed:
+
+.. code-block:: php
+
+   'max' => 4,
+   'range' => [
+     'lower' => 0,
+   ],
+
+TYPO3 itself shouldn't limit the inputs of an editor by using a number which was large 10 years ago.
+
+If you need a custom range, please provide it in your site package and set it in :file:`Configuration/TCA/Overrides.php` with:
+
+.. code-block:: php
+
+   $GLOBALS['TCA']['tt_content']['columns']['imagewidth']['config']['range']['upper'] = 1999;
+
+.. index:: Backend, TCA, ext:frontend
index 6021fef..1416fe3 100644 (file)
@@ -719,10 +719,8 @@ return [
             'config' => [
                 'type' => 'input',
                 'size' => 4,
-                'max' => 4,
                 'eval' => 'int',
                 'range' => [
-                    'upper' => 1999,
                     'lower' => 0,
                 ],
                 'default' => 0
@@ -734,10 +732,8 @@ return [
             'config' => [
                 'type' => 'input',
                 'size' => 4,
-                'max' => 4,
                 'eval' => 'int',
                 'range' => [
-                    'upper' => 1999,
                     'lower' => 0,
                 ],
                 'default' => 0