Bug #71918
closed['appearance']['enabledControls']['new'] = false does not hide "New" button in Inline Elements
100%
Description
If I set
['appearance']['enabledControls']['new'] = false
in the TCA Configuration of an Inline Element, I would expect that the new button is not visible in the Inline Element of the record but it still is.
Reason:
In
backend\Classes\Form\Container\InlineControlContainer.php
Line 246
// Render the level links (create new record):
$levelLinks = $this->getLevelInteractionLink('newRecord', $nameObject . '-' . $foreign_table, $config);
is always called, there is no condition to ['appearance']['enabledControls']['new'] = false
The bug occurs in 7 LTS and 6.2
Files
Updated by Gernot Schulmeister almost 9 years ago
The solution would be
// Render the level links (create new record): if ($config['appearance']['enabledControls']['new']) { > $levelLinks = $this->getLevelInteractionLink('newRecord', $nameObject . '-' . $foreign_table, $config); }
but I cannot push it at the moment ;-)
Updated by Gerrit Code Review almost 9 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/45017
Updated by Gerrit Code Review almost 9 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45017
Updated by Gerrit Code Review almost 9 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45017
Updated by Gerrit Code Review almost 9 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45017
Updated by Gernot Schulmeister almost 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 8d6fb88ae5272e7a6f79cb5392dc92ddc35bb9c3.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed
Updated by Christian Eßl about 5 years ago
- Related to Bug #82489: No newRecordLink if config.appearance.enabledControls.new = false added