Skip to content

Commit

Permalink
[BUGFIX] Detect new localisations of study courses as new
Browse files Browse the repository at this point in the history
  • Loading branch information
vertexvaar committed Sep 26, 2024
1 parent 0343af4 commit 32f0288
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Classes/Slug/UrlSegmentPostModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@ protected function isNewRecord(): bool
if (is_array($data) && key($data) === StudyCourse::TABLE) {
return true;
}
$cmd = GeneralUtility::_GP('cmd');
if (is_array($cmd) && array_key_exists(StudyCourse::TABLE, $cmd) && is_array($cmd[StudyCourse::TABLE])) {
foreach ($cmd[StudyCourse::TABLE] as $recordCmd) {
if (isset($recordCmd['localize']) && $recordCmd['localize']) {
return true;
}
}
}
}

return false;
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
'author' => 'Sebastian Stein',
'author_email' => '[email protected]',
'state' => 'stable',
'version' => '7.3.0',
'version' => '7.3.1',
'constraints' => [
'depends' => [
'typo3' => '9.5.0-10.4.99',
Expand Down

0 comments on commit 32f0288

Please sign in to comment.