Bug #98278
closed
One Image per Element / Upload buttons do not reappear after deletion
Added by Dennis Metz about 2 years ago.
Updated about 2 years ago.
Description
With the latest update from 11.5.14 to 11.5.15, I noticed the following:
If I allow only 1 image in an element and save, the upload buttons disappear (so far good).
However, when I delete the image, the buttons do not reappear (this worked in 11.5.14).
I have to save here first and then the buttons show up again.
The problem leads to the behavior that elements which have an image as a mandatory field cannot be saved and the image cannot be replaced.
Files
Code:
'thumbnail' => [
'exclude' => false,
'label' => 'xxxxxxxxxxxxx',
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
'thumbnail',
[
'appearance' => [
'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference'
],
'foreign_types' => [
'0' => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
],
//...more...
],
'foreign_match_fields' => [
'fieldname' => 'thumbnail',
'tablenames' => 'tx_xxxxxxxxxxxxx',
'table_local' => 'sys_file',
],
'maxitems' => 1
],
$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
),
],
We noticed the same issue.
The button does not disappear when the maximum amount of items is reached and causes a JavaScript error if you try to add more, and does not appear if you remove items and the amount of items is lower than the maximum amount of allowed items.
- Is duplicate of Bug #98233: Regression: After deleting image in record "add" button is not displayed again added
- Status changed from New to Closed
→ address in duplicate issue #98233
Also available in: Atom
PDF