Actions
Bug #93479
closedTCA inline file with maxitems to 1, can't add after delete
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-02-10
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:
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.
Actions