From 32f028818551e6317052ef6fc918f9bbdaabb4d4 Mon Sep 17 00:00:00 2001 From: Oliver Eglseder Date: Thu, 26 Sep 2024 11:18:16 +0200 Subject: [PATCH] [BUGFIX] Detect new localisations of study courses as new Resolves: https://projekte.in2code.de/issues/66785 --- Classes/Slug/UrlSegmentPostModifier.php | 8 ++++++++ ext_emconf.php | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Classes/Slug/UrlSegmentPostModifier.php b/Classes/Slug/UrlSegmentPostModifier.php index 90136b0..93ffdcc 100644 --- a/Classes/Slug/UrlSegmentPostModifier.php +++ b/Classes/Slug/UrlSegmentPostModifier.php @@ -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; diff --git a/ext_emconf.php b/ext_emconf.php index 2d73c13..44d2677 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -7,7 +7,7 @@ 'author' => 'Sebastian Stein', 'author_email' => 'sebastian.stein@in2code.de', 'state' => 'stable', - 'version' => '7.3.0', + 'version' => '7.3.1', 'constraints' => [ 'depends' => [ 'typo3' => '9.5.0-10.4.99',