Skip to content

Commit

Permalink
Fix upgrade wizard
Browse files Browse the repository at this point in the history
Avoid SQL errors in the Upgrade Wizard
  • Loading branch information
baschny authored Sep 25, 2023
1 parent 9083a97 commit 1606dda
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions Classes/Upgrades/GlossaryUpgradeWizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,21 @@ public function executeUpdate(): bool

$updateGlossary = [];
foreach ($result as $item) {
unset($item['description']);
unset($item['starttime']);
unset($item['endtime']);
$updateGlossary[] = $item;
$updateGlossary[] = [
'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'],
'l10n_parent' => $item['l10n_parent'],
'l10n_source' => $item['l10n_source'],
'l10n_state' => $item['l10n_state'],
'l10n_diffsource' => $item['l10n_diffsource'],
'term' => $item['term'],
];
}

$insert = GeneralUtility::makeInstance(ConnectionPool::class)
Expand Down

0 comments on commit 1606dda

Please sign in to comment.