Project

General

Profile

Actions

Bug #95496

closed

TYPO3\CMS\Backend\Form\Behavior\UpdateValueOnFieldChange::__construct() must be of the type string, int given

Added by Nikolas Hagelstein over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-10-06
Due date:
% Done:

100%

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

Description

The constructor of TYPO3\CMS\Backend\Form\Behavior\UpdateValueOnFieldChange expects the $identifier to be a string.

Unfortunatly $identifier is (can be )an integer when called from TYPO3\CMS\Backend\Controller\FormFlexAjaxController.
See https://github.com/TYPO3/typo3/blob/master/typo3/sysext/backend/Classes/Controller/FormFlexAjaxController.php#L131

Quick and dirty fix would be just cast it to a string before passing it.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #95601: Exception during UpdateValueOnFieldChange initializationClosed2021-10-12

Actions
Actions

Also available in: Atom PDF