Skip to content

keep hidden state of container children on copy/move/localize/copyToLanguage - #763

Open
achimfritz wants to merge 2 commits into
masterfrom
bugfix/issue-400
Open

keep hidden state of container children on copy/move/localize/copyToLanguage#763
achimfritz wants to merge 2 commits into
masterfrom
bugfix/issue-400

Conversation

@achimfritz

Copy link
Copy Markdown
Contributor

No description provided.

DataHandler::copyRecord() forces hidden=1 on every copied record unless
the backend user has neverHideAtCopy enabled. Our own copy/move hook
for container children relied on that default, so all children ended
up hidden after copying a container, regardless of their original
visibility. Pass the source child's hidden value explicitly as an
override in the cmdmap's update array, which takes precedence over
DataHandler's automatic hideAtCopy logic.

Relates to: #400
…nguage

Same issue as the copy/move fix, but 'localize' and 'copyToLanguage'
cmdmap commands don't support an 'update' override array, so the
hidden value can't be passed through the cmdmap directly. Instead,
restore it explicitly via a follow-up datamap call once the new
child record's uid is known.

Fixes: #400
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant