[BUGFIX] Only apply language constraints for "Show hidden" checkbox if neccessary 90/56590/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Tue, 3 Apr 2018 19:08:02 +0000 (21:08 +0200)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Fri, 6 Apr 2018 15:23:09 +0000 (17:23 +0200)
commit24cec058056ba6ee6b173d4a93c08c40fdb311b8
tree88f8a3f9895a6d0cda23d61eb4af89e77d63cae1
parentc0917a312b00c2bad5f13626e9e9b5a700596772
[BUGFIX] Only apply language constraints for "Show hidden" checkbox if neccessary

The checkbox "Show hidden content elements" currently checks any selected
language. This is malfunctioning in case the language "Default" is
selected in the "Language" view, as it won't affect any translation.

The patch now changes the handling to add the language constraint only if
the view renders multiple languages and any language is selected, that is
not the default language.

Resolves: #84589
Resolves: #84573
Releases: master, 8.7
Change-Id: I572d594e5828d423e67a40481f44857df79ebae9
Reviewed-on: https://review.typo3.org/56590
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
typo3/sysext/backend/Classes/Controller/PageLayoutController.php