Bug #82785
closedDisable/Enable page missing from ContextMenu
100%
Description
When you disable the exclude-configuration for the hidden field of pages, the Disable/Enable entry in the PageTree ContextMenu is missing.
All my editors should have access to the hidden-field of pages. That's why I added the following configuration in TCA/Overrides/pages.php
unset($GLOBALS['TCA']['pages']['columns']['hidden']['exclude']);
I prefer unsetting exclude fields in TCA over allowing exclude-fields in the user group (if all groups should have access to a field), because I can check in these changes in source-control and the list of exclude-fields in backend user groups gets shorter and clearer.
But when the exclude-setting for hidden is removed, the following check will always return false:
RecordProvider.php#L583
I believe the fix would be to change this if-clause to
if ( $hiddenFieldName !== '' && (!isset($GLOBALS['TCA'][$this->table]['columns'][$hiddenFieldName]['exclude']) || $this->backendUser->check('non_exclude_fields', $this->table . ':' . $hiddenFieldName)) ) {
Files
Updated by Gerrit Code Review over 6 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56343
Updated by Tymoteusz Motylewski over 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 585c44d8c7064169c698d37c8377c1e1199b2d2e.