Issue Bug Closed

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

Nikolas Hagelstein 10/06/21, 14:33 updated 10/07/21, 07:20

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.

Reviews 1