FluidTYPO3 / flux

TYPO3 extension Flux: Dynamic Fluid FlexForms
https://fluidtypo3.org
148 stars 214 forks source link

Hidden child elements in grids are not copied with their parents #2117

Closed steffen-hph closed 11 months ago

steffen-hph commented 11 months ago

Hidden child elements in grids are not copied with their parents

When trying to copy a grid element, child elements that are hidden are not copied.

Our solution: In FluidTYPO3\Flux\Integration\HookSubscribers\DataHandlerSubscriber after line 615 : $queryBuilder->getRestrictions()->removeByType(HiddenRestriction::class);

Like:

        $queryBuilder = $this->createQueryBuilderForTable($table);
        // BUGFIX: Hidden child elements in grids are not copied with their parents
        $queryBuilder->getRestrictions()->removeByType(HiddenRestriction::class);
        if ($command === 'undelete') {
            $queryBuilder->getRestrictions()->removeAll();
        }

TYPO3 12.4.5 Flux: Latest from today (2023-08-11)