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 #1

Updated by Gernot Schulmeister over 8 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 ;-)

Actions #2

Updated by Gerrit Code Review over 8 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

Actions #3

Updated by Gerrit Code Review over 8 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

Actions #4

Updated by Gerrit Code Review over 8 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

Actions #5

Updated by Gerrit Code Review over 8 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

Actions #6

Updated by Gernot Schulmeister over 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions #8

Updated by Christian Eßl over 4 years ago

  • Related to Bug #82489: No newRecordLink if config.appearance.enabledControls.new = false added
Actions

Also available in: Atom PDF