Issue Bug Closed

#109934wrong workspace state for tables without hidden field (disabled)

Andreas Häfner 06/01/26, 07:19 updated 08/11/26, 08:50

Description

records of tables without hidden-field get wrong workspace-state hidden/unhidden.

‘\TYPO3\CMS\Workspaces\Service\GridDataService::generateDataArray()’

 if ($hiddenField !== null) {
    $recordState = $this->workspaceState($versionRecord['t3ver_state'], (bool)$origRecord[$hiddenField], (bool)$versionRecord[$hiddenField], $hasDiff);
} else {
    $recordState = $this->workspaceState($versionRecord['t3ver_state'], $hasDiff);
}

‘\TYPO3\CMS\Workspaces\Service\GridDataService::workspaceState()’

protected function workspaceState(int $stateId, bool $hiddenOnline = false, bool $hiddenOffline = false, bool $hasDiff = true): string

Reviews 2