Closed xperseguers closed 7 years ago
Suggested patch (sorry for no fork-patch-PR, a bit in a hurry for an actual migration):
diff --git a/Configuration/TCA/Overrides/sys_file_metadata.php b/Configuration/TCA/Overrides/sys_file_metadata.php
index e944bd1..5c9d9fa 100644
--- a/Configuration/TCA/Overrides/sys_file_metadata.php
+++ b/Configuration/TCA/Overrides/sys_file_metadata.php
@@ -14,7 +14,6 @@ $tca = [
],
'columns' => [
'fileinfo' => [
- 'l10n_mode' => 'exclude',
'config' => [
'type' => 'user',
'userFunc' => 'EXT:media/Classes/Backend/TceForms.php:Fab\Media\Backend\TceForms->renderFileUpload',
@@ -31,4 +30,4 @@ $tca = [
],
],
];
Upgrade wizard "Execute database migrations on single rows" in Install Tool does that:
When launching this upgrade wizard, it crashes after some time with an SQL exception:
This is due to the wrong override of
sys_file_metadata
's fieldfileinfo
which gets an additionall10n_mode
exclusion inConfiguration/TCA/Overrides/sys_file_metadata.php
.This has the side effect of adding this (virtual) column to the SQL list of selected fields, within method
\TYPO3\CMS\Core\DataHandling\Localization\DataMapProcessor::getLocalizationModeExcludeFieldNames()
, line 978 and thus leads to the invalid SQL query.Don't know why this exclusion has been set but if it is really "needed", then this should probably be just changed as a
displayCond
condition like(this kind of change is useful too in some edge-case usage of inline localized records, see https://forge.typo3.org/issues/80944 for info).