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 f1d9cd4
Showing 1 changed file with 8 additions and 0 deletions.
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

0 comments on commit f1d9cd4

Please sign in to comment.