Review main Merged

71556[BUGFIX] Consider hideAtCopy and disableHideAtCopy for page translation

André Buchmann CR +2 V +2 Expert +2015 −2 updated 11/15/21, 20:30

Commit message

In TYPO3 v8, new page translations within pages_language_overlay
were visible by default when using plain DataHandler.

In TYPO3 v9, due to the merge into "pages" for translations,
the default value for "hidden" is used. Every new page translation
was hidden by default - this was a different behavior.

Issue #88248 changed this and restored the behaviour how it was in
TYPO3 v8, this translated pages where always visible.

This patch consider TCA configuration 'hideAtCopy' and TSconfig setting
'TCEMAIN.table.pages.disableHideAtCopy' options for page translations
if source page is not already hidden. Further datahandler tests are
added to cover these cases and prevent regressions on that.

As the patch for #88248 already has been stating:

For future TYPO3 major versions, the hidden field could be migrated
into a 'allowLanguageSynchronization' once the Context API is used
throughout Core properly.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 2

Files 47

Show 27 more files