Project

General

Profile

Actions

Bug #83750

closed

InlineControlContainer disrespects GeneralUtility::callUserFunction's signature

Added by Olaf Hoffmann about 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
Backend API
Target version:
Start date:
2018-02-01
Due date:
% Done:

100%

Estimated time:
2.00 h
TYPO3 Version:
8
PHP Version:
7.1
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

Description

The variable `$customControlConfig` is an array:

https://github.com/TYPO3/TYPO3.CMS/blob/v9.1.0/typo3/sysext/backend/Classes/Form/Container/InlineControlContainer.php#L333

GeneralUtility::callUserFunction however expects its first argument to be a string or a function but not an array:

https://github.com/TYPO3/TYPO3.CMS/blob/v9.1.0/typo3/sysext/core/Classes/Utility/GeneralUtility.php#L3388

This breaks the `customControls` feature of inline-Fields in TCA as documented here: https://docs.typo3.org/typo3cms/TCAReference/8.7/ColumnsConfig/Type/Inline.html#customcontrols

Instead of passing an array of arrays as requested by the docs, one could just pass an array of functions and/or function identifiers to work around this issue.

Tested with TYPO3 versions 8 and 9.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #85913: Remove deprecation backported to v8ClosedAnja Leichsenring2018-08-20

Actions
Actions

Also available in: Atom PDF