Skip to content

Commit

Permalink
#85 fix profile page path check (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
digedag authored Jul 21, 2023
1 parent 59cec28 commit 188ca9c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion Classes/Controller/Team/ProfileCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ public static function isProfilePage($pid)
return true;
}

// FIXME!
$goodPages = Misc::getPagePath($pid);

return in_array($rootPage, $goodPages);
Expand Down
5 changes: 4 additions & 1 deletion Classes/Utility/Misc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 188ca9c

Please sign in to comment.