From fbb04a08566fc6a3e69ead94f88f518bd51593da Mon Sep 17 00:00:00 2001 From: Marc Bastian Heinrichs Date: Wed, 8 May 2024 12:21:23 +0200 Subject: [PATCH] [BUGFIX] Detected current page right for pages Resolves: #327 --- Classes/Utility/DeeplBackendUtility.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Classes/Utility/DeeplBackendUtility.php b/Classes/Utility/DeeplBackendUtility.php index 88fcaca4..80188311 100644 --- a/Classes/Utility/DeeplBackendUtility.php +++ b/Classes/Utility/DeeplBackendUtility.php @@ -272,9 +272,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); } }