Project

General

Profile

Actions

Bug #87747

closed

"Allowed file extensions" always added below new inline relation button

Added by Georg Tiefenbrunn almost 6 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2019-02-20
Due date:
% Done:

100%

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

Description

Function TYPO3\CMS\Backend\Form\Container\InlineControlContainer::renderPossibleRecordsSelectorTypeGroupDB does not check if the mode is 'db' (internal_type='db') and always renders 'allowed' tables as "Allowed file extensions".

// IRRE field
        'relations' => [
            'config' => [
                'type' => 'inline',
                'foreign_table' => 'tx_foo_reference',
                'foreign_selector' => 'uid_local',
                ...
            ],
        ],

// foreign_selector definition in relation table tx_foo_reference
        'uid_local' => [
            'config' => [
                'type' => 'group',
                'internal_type' => 'db',
                'allowed' => 'sys_category,fe_users',
                ...
            ],
        ],

Renders "Allowed file extensions SYS_CATEGORY FE_USERS" below the new inline relation button.

Allowed file extensions should only be rendered for internal_type='file'.

Actions

Also available in: Atom PDF