Skip to content

Commit

Permalink
Fix access to col values in getColumnCollapsedState
Browse files Browse the repository at this point in the history
  • Loading branch information
garbast authored Jan 6, 2024
1 parent ee8bb28 commit c29e2bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Xclass/ContainerPreviewRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function renderPageModulePreviewContent(GridColumnItem $item): string
foreach ($cols as $col) {
$newContentElementAtTopTarget = $this->containerService->getNewContentElementAtTopTargetInColumn($container, $col['colPos']);
$allowNewContentElements = !$this->containerColumnConfigurationService->isMaxitemsReached($container, $col['colPos']);
$collapsed = $this->getColumnCollapsedState((int)$record['uid'], (int)$col['colPos']);
$collapsed = $this->getColumnCollapsedState((int)$record['uid'], (int)$col['colPos'], $col);
$columnObject = GeneralUtility::makeInstance(
ContainerGridColumn::class,
$context,
Expand Down Expand Up @@ -85,7 +85,7 @@ public function renderPageModulePreviewContent(GridColumnItem $item): string
return $content . $rendered;
}

protected function getColumnCollapsedState(int $recordUid, int $colPos): bool
protected function getColumnCollapsedState(int $recordUid, int $colPos, array $col): bool
{
$collapseId = $recordUid . ContainerGridColumn::CONTAINER_COL_POS_DELIMITER_V12 . $colPos;
if (isset($this->getBackendUser()->uc['moduleData']['list']['containerExpanded'][$collapseId])) {
Expand Down

0 comments on commit c29e2bf

Please sign in to comment.