Skip to content

Commit

Permalink
Merge pull request #303 from baschny/patch-1
Browse files Browse the repository at this point in the history
Fix upgrade wizard
  • Loading branch information
calien666 authored Oct 6, 2023
2 parents c01005c + 1606dda commit fab3a79
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 fab3a79

Please sign in to comment.