[BUGFIX] Use correct palettes for pages.media sys_file_references 16/46716/2
authorBenni Mack <benni@typo3.org>
Tue, 16 Feb 2016 13:42:49 +0000 (14:42 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 16 Feb 2016 14:30:12 +0000 (15:30 +0100)
When using pages.media and videos / audios, then the wrong
fields for a palette are shown.

The patch changes the palettes to use the same as in e.g.
tt_content.assets.

Resolves: #73489
Releases: master, 7.6
Change-Id: Ifa1fd44e3ffd9a498aaf05dc34f59b6777c8c299
Reviewed-on: https://review.typo3.org/46716
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Configuration/TCA/pages.php

index 71c4771..99efc9e 100644 (file)
@@ -666,12 +666,12 @@ return array(
                         ),
                         \TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => array(
                             'showitem' => '
-                                                               --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
+                                                               --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.audioOverlayPalette;audioOverlayPalette,
                                                                --palette--;;filePalette'
                         ),
                         \TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => array(
                             'showitem' => '
-                                                               --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
+                                                               --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.videoOverlayPalette;videoOverlayPalette,
                                                                --palette--;;filePalette'
                         ),
                         \TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => array(
@@ -1058,4 +1058,4 @@ return array(
             'showitem' => 'tsconfig_includes;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tsconfig_includes, --linebreak--, TSconfig;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.TSconfig_formlabel',
         )
     )
-);
+);
\ No newline at end of file