[BUGFIX] Only apply language constraints for "Show hidden" checkbox if neccessary 32/56532/5
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 14:54:35 +0000 (16:54 +0200)
commit94acfea021c35fa5c24835b7761f0c9679c3b2d7
tree6a620cb5feda598596cd8e705254fc548f5a6618
parentb6fbbfcd752827bbd6787b394d5a500d9903eb2c
[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/56532
Tested-by: TYPO3com <no-reply@typo3.com>
Tested-by: Sybille Peters <sypets@gmx.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Joshua Westerheide <account@jdoubleu.de>
Tested-by: Joshua Westerheide <account@jdoubleu.de>
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