[BUGFIX] Remove possibility to exclude width/height in sys_file_metadata 83/59883/3
authorSusanne Moog <susanne.moog@typo3.com>
Wed, 6 Mar 2019 12:39:21 +0000 (13:39 +0100)
committerFrank Naegler <frank.naegler@typo3.org>
Fri, 8 Mar 2019 21:40:26 +0000 (22:40 +0100)
Width and height are readonly fields updated by system image service API.
To ensure the API (for example the crop wizard) works flawlessly for
editors out of the box, width and height are no longer exclude fields.

Bugfix is for master only, as the workaround for earlier versions is
as simple as putting this in TCA overrides:

unset(
    $GLOBALS['TCA']['sys_file_metadata']['columns']['width']['exclude'],
    $GLOBALS['TCA']['sys_file_metadata']['columns']['height']['exclude']
);

Releases: master
Resolves: #81964
Change-Id: I53f6c5353f0a8d629a9d209675a19def2d6c7a60
Reviewed-on: https://review.typo3.org/c/59883
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Riccardo De Contardi <erredeco@gmail.com>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/core/Configuration/TCA/sys_file_metadata.php

index 39ee918..efdcd84 100644 (file)
@@ -116,7 +116,6 @@ return [
             ]
         ],
         'width' => [
-            'exclude' => true,
             'l10n_mode' => 'exclude',
             'l10n_display' => 'defaultAsReadonly',
             'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:file.width',
@@ -130,7 +129,6 @@ return [
             ],
         ],
         'height' => [
-            'exclude' => true,
             'l10n_mode' => 'exclude',
             'l10n_display' => 'defaultAsReadonly',
             'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:file.height',