diff --git a/CHANGELOG.md b/CHANGELOG.md index 720150c..6e40358 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ Ă„nderungen ========== +## v1.11.1 (21.07.2023) + * fix check for profile page path + ## v1.11.0 (21.07.2023) * Add support for TYPO3 12.4 LTS diff --git a/Classes/Controller/Team/ProfileCreate.php b/Classes/Controller/Team/ProfileCreate.php index f1ef9c5..1630c78 100644 --- a/Classes/Controller/Team/ProfileCreate.php +++ b/Classes/Controller/Team/ProfileCreate.php @@ -90,7 +90,6 @@ public static function isProfilePage($pid) return true; } - // FIXME! $goodPages = Misc::getPagePath($pid); return in_array($rootPage, $goodPages); diff --git a/Classes/Utility/Misc.php b/Classes/Utility/Misc.php index d9ba6ba..e7b578d 100644 --- a/Classes/Utility/Misc.php +++ b/Classes/Utility/Misc.php @@ -5,6 +5,7 @@ use Sys25\RnBase\Backend\Utility\BackendUtility; use Sys25\RnBase\Backend\Utility\Icons; use Sys25\RnBase\Database\Connection; +use Sys25\RnBase\Utility\TYPO3; use Sys25\RnBase\Utility\Typo3Classes; use System25\T3sports\Sports\ISports; use tx_rnbase; @@ -245,7 +246,9 @@ public static function getPagePath($uid, $clause = '') if (!empty($rows)) { $row = reset($rows); BackendUtility::workspaceOL('pages', $row); - BackendUtility::fixVersioningPid('pages', $row); + if (!TYPO3::isTYPO115OrHigher()) { + BackendUtility::fixVersioningPid('pages', $row); + } $uid = $row['pid']; $output[] = $uid; diff --git a/ext_emconf.php b/ext_emconf.php index a2d152d..7c37f68 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -15,7 +15,7 @@ 'description' => 'Umfangreiche Extension zur Verwaltung von Sportvereinen und -wettbewerben. Extensive extension to manage sports clubs and competitions. https://github.com/digedag/cfc_league', 'category' => 'module', 'shy' => 0, - 'version' => '1.11.0', + 'version' => '1.11.1', 'dependencies' => 'rn_base', 'module' => 'mod1', 'state' => 'stable',