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

Updated by Nikolas Hagelstein over 2 years ago

  • Description updated (diff)
Actions #2

Updated by Nikolas Hagelstein over 2 years ago

  • PHP Version set to 7.4
Actions #3

Updated by Gerrit Code Review over 2 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/c/Packages/TYPO3.CMS/+/71467

Actions #4

Updated by Oliver Bartsch over 2 years ago

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

Updated by Benni Mack over 2 years ago

  • Status changed from Resolved to Closed
Actions #6

Updated by Georg Ringer over 2 years ago

  • Related to Bug #95601: Exception during UpdateValueOnFieldChange initialization added
Actions

Also available in: Atom PDF