Issue Bug Closed

#71918['appearance']['enabledControls']['new'] = false does not hide "New" button in Inline Elements

Gernot Schulmeister 11/28/15, 14:59 updated 10/19/17, 22:00

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

Reviews 3