Skip to content

Commit

Permalink
fix: allow language synchronization for image cropping
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdmlln committed Apr 10, 2024
1 parent b874e58 commit adb558e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Configuration/TCA/Overrides/sys_file_reference.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use TYPO3\CMS\Core\Resource\File;
use TYPO3\CMS\Core\Resource\AbstractFile;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;

defined('TYPO3') || die;
Expand All @@ -21,7 +21,7 @@
['TCA']
['sys_file_reference']
['types']
[File::FILETYPE_IMAGE]
[AbstractFile::FILETYPE_IMAGE]
['columnsOverrides']
['tx_headless_lazy_loading']
['config']
Expand All @@ -44,3 +44,6 @@
'videoOverlayPalette',
'tx_headless_lazy_loading'
);

// required to use language synchronization for image cropping: https://forge.typo3.org/issues/88024#note-3
$GLOBALS['TCA']['sys_file_reference']['columns']['crop']['config']['behaviour']['allowLanguageSynchronization'] = true;

0 comments on commit adb558e

Please sign in to comment.