From 69f8610d8d225ebe9e3c3e1daedeef51fab76fa3 Mon Sep 17 00:00:00 2001 From: Sebastian Fischer Date: Sat, 10 Aug 2024 21:41:49 +0200 Subject: [PATCH] [TASK] Fix collapse due to changed collapseId --- Classes/Xclass/ContainerPreviewRenderer.php | 2 +- .../Partials/PageLayout/Grid/Column.html | 2 +- Resources/Public/JavaScript/container.js | 19 +++++++++++++------ 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/Classes/Xclass/ContainerPreviewRenderer.php b/Classes/Xclass/ContainerPreviewRenderer.php index 65ce5a8..27e3d9d 100644 --- a/Classes/Xclass/ContainerPreviewRenderer.php +++ b/Classes/Xclass/ContainerPreviewRenderer.php @@ -120,7 +120,7 @@ public function renderPageModulePreviewContent(GridColumnItem $item): string protected function setColumnCollapsedState(int $recordUid, BaseContainerGridColumn $columnObject, array $col): void { - $collapseId = $recordUid . $columnObject->getColumnNumber(); + $collapseId = $recordUid . ContainerGridColumn::CONTAINER_COL_POS_DELIMITER . $columnObject->getColumnNumber(); if (isset($this->getBackendUser()->uc['moduleData']['list']['containerExpanded'][$collapseId])) { $collapsed = $this->getBackendUser()->uc['moduleData']['list']['containerExpanded'][$collapseId] > 0; } else { diff --git a/Resources/Private/Partials/PageLayout/Grid/Column.html b/Resources/Private/Partials/PageLayout/Grid/Column.html index 8ecd10a..582ca77 100644 --- a/Resources/Private/Partials/PageLayout/Grid/Column.html +++ b/Resources/Private/Partials/PageLayout/Grid/Column.html @@ -1,6 +1,6 @@