Skip to content

Changing language of container will only change it also for its own children (not recursive) #686

@github1maxserv

Description

@github1maxserv

If there are nested containers and the language of the outer container is changed only direct children will be modified as well. Grandchildren and further levels are ignored.

Use case

Part of a migration from gridelements to containers was to convert containers with language "All languages" to properly translated content in connected mode.

Location of problem

\B13\Container\Hooks\Datahandler\DatamapBeforeStartHook::datamapForChildrenChangeContainerLanguage() only adds direct children to the array of elements that need to be modified.

How to reproduce

Use the Page module to created nested containers with content elements at the lowest level. Switch to the List module (Container doesn't like All languages elements very much). Edit the outer most container and change the language to "All languages". Verify that only the direct children of the modified container also have their language setting changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions