Issue Bug Closed

#102396InputLinkElement fails parsing nullable fields

Henrik Elsner 11/17/23, 13:51 updated 07/09/24, 15:12

Description

Error:
`PHP Runtime Deprecation Notice: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/vendor/typo3/cms-backend/Classes/Form/Element/InputLinkElement.php line 231`

We have a TCA config which involves a link along with the eval => null.
See full config, that can be used within styleguide Extension:

'input_29' => [
    'exclude' => 1,
    'label' => 'input_29',
    'description' => 'renderType=inputLink',
    'config' => [
        'type' => 'input',
        'renderType' => 'inputLink',
        'eval' => 'null',
        'default' => null,
    ],
],

Reviews 1