Project

General

Profile

Actions

Bug #71918

closed

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

Added by Gernot Schulmeister over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2015-11-28
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

TCAInline.JPG (54.6 KB) TCAInline.JPG Gernot Schulmeister, 2015-11-28 14:59
Irre5.JPG (18.4 KB) Irre5.JPG Gernot Schulmeister, 2015-11-28 14:59
InlineControlContainer.JPG (23.8 KB) InlineControlContainer.JPG Gernot Schulmeister, 2015-11-28 14:59

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #82489: No newRecordLink if config.appearance.enabledControls.new = falseClosed2017-09-15

Actions
Actions

Also available in: Atom PDF