#93479TCA inline file with maxitems to 1, can't add after delete
Description
I have an inline field to add images and the maxitems & minitems property is set to 1
'image' => [
'config' => ExtensionManagementUtility::getFileFieldTCAConfig(
'image',
[
'appearance' => [
...
],
'default' => 0,
'maxitems' => 1,
'minitems' => 1,
'overrideChildTca' => [...]
]
],
$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
),
'exclude' => true,
'label' => 'myLabel'
],
If I delete it I do not have the option to add a new image and since the minitems property is set to 1 the element can not be saved.
If I remove the minitems property I can save it and after that the button for adding new image is there.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.