diff --git a/Classes/Upgrades/GlossaryUpgradeWizard.php b/Classes/Upgrades/GlossaryUpgradeWizard.php index 4d37095a..9a561d2b 100644 --- a/Classes/Upgrades/GlossaryUpgradeWizard.php +++ b/Classes/Upgrades/GlossaryUpgradeWizard.php @@ -66,12 +66,11 @@ public function executeUpdate(): bool $updateGlossary = []; foreach ($result as $item) { - $updateGlossary[] = [ + $formatItem = [ 'uid' => $item['uid'], 'pid' => $item['pid'], 'tstamp' => $item['tstamp'], 'crdate' => $item['crdate'], - 'cruser_id' => $item['cruser_id'], 'deleted' => $item['deleted'], 'hidden' => $item['hidden'], 'sys_language_uid' => $item['sys_language_uid'], @@ -81,6 +80,12 @@ public function executeUpdate(): bool 'l10n_diffsource' => $item['l10n_diffsource'], 'term' => $item['term'], ]; + + if ((new Typo3Version())->getMajorVersion() < 12) { + $formatItem['cruser_id'] = $item['cruser_id']; + } + + $updateGlossary[] = $formatItem; } $insert = GeneralUtility::makeInstance(ConnectionPool::class)