Skip to content

Commit

Permalink
[BUGFIX] Detected current page right for pages
Browse files Browse the repository at this point in the history
Resolves: #327
  • Loading branch information
Mabahe committed May 8, 2024
1 parent 20e67e6 commit 993fed3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Classes/Utility/DeeplBackendUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,10 @@ public static function detectCurrentPage(): array
[$id] = array_keys($values);
if ($possibleTable === 'pages') {
self::$currentPage = self::getPageRecord($id);
} else {
$pageId = self::getPageIdFromRecord($possibleTable, $id);
self::$currentPage = self::getPageRecord($pageId);
}
$pageId = self::getPageIdFromRecord($possibleTable, $id);
self::$currentPage = self::getPageRecord($pageId);
}
}

Expand Down

0 comments on commit 993fed3

Please sign in to comment.