Bug #91808
closedNested IRRE with maxitems hides last inline control button / toggles inline control buttons wrong
0%
Description
In TYPO3 Version 10.4.5 i have configured a nested inline relation:
'tx_sitepackage_stageitems' => [
'exclude' => 1,
'label' => 'LLL:EXT:sitepackage/Resources/Private/Language/locallang_db.xlf:tt_content.tx_sitepackage_stageitems',
'config' => [
'type' => 'inline',
'foreign_table' => 'tx_sitepackage_domain_model_stageitem',
'foreign_field' => 'contentelement',
'minitems' => 1,
'maxitems' => 3,
'appearance' => [
'collapseAll' => 1
],
]
],
In tx_sitepackage_stageitems i have configured a FAL relation:
'image' => array(
'exclude' => 0,
'label' => 'LLL:EXT:sitepackage/Resources/Private/Language/locallang_db.xlf:tx_sitepackage_domain_model_stageitem.image',
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
'image',
[
'appearance' => [
'fileUploadAllowed' => false
],
'minitems' => 1,
'maxitems' => 1
],
$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
),
),
When an editor adds the last (third) tx_sitepackage_domain_model_stageitem, in this last one no file selector is shown for the image field.
sysext/backend/Resources/Public/JavaScript/FormEngine/Container/InlineControlContainer.js toggles all (even the nested) .t3js-inline-controls, and not only its own.
Files
Updated by Gerrit Code Review about 4 years ago
- Status changed from New to Under Review
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/65058
Updated by Gerrit Code Review about 4 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/65058
Updated by Gerrit Code Review about 4 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/65058
Updated by Gerrit Code Review about 4 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/65058
Updated by Anja Leichsenring about 4 years ago
I created a styleguide example for the issue: https://github.com/TYPO3/styleguide/pull/159
Updated by Gerrit Code Review about 4 years ago
Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/65728
Updated by Nikita Hovratov about 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 50a9fb0ac40d436cb89b966d6070ce7f2c77bd5a.
Updated by Gerrit Code Review about 4 years ago
- Status changed from Resolved to Under Review
Patch set 2 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/65728
Updated by Gerrit Code Review almost 4 years ago
Patch set 3 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/65728
Updated by Nikita Hovratov almost 4 years ago
- Status changed from Under Review to Resolved
Applied in changeset d2e8c1b60d5e2fb9cdc4f93a4ca1258f7bb6d0c6.
Updated by Oliver Bartsch almost 4 years ago
- Related to Bug #92381: Button "Create new" does not re-appear for inline (IRRE) elements after reaching maxitems and removing one element added
Updated by Oliver Bartsch almost 4 years ago
- Related to Bug #78479: FAL field (in flexform) with minitems=1 and maxitems=1 has no possibility to add image after deleting the previous one added
Updated by Christian Buelter almost 4 years ago
- Related to Bug #92382: levelLinksPosition=bottom is not working correctly especially with minitems=1 set and leads to misbehaviour in inline children added
Updated by Benni Mack almost 4 years ago
- Status changed from Resolved to Closed
Updated by Thomas Anders over 3 years ago
Seems broken again.
Tested in:
10.4.12 = broken
10.4.11 = broken
10.4.10 = broken
10.4.9 = works
Adding an inline-item, save the record.
Remove the inline-item - no button to readd an other.
Updated by Alex B. over 3 years ago
- Priority changed from Should have to Must have
I can confirm that issue appears again in 10.4.12.
Updated by Oliver Pfaff over 3 years ago
- % Done changed from 100 to 0
I can also confirm that the bug exists in the latest 10.4.12 version.
Here is my TCA:
'preview_image' => [
'exclude' => true,
'label' => 'LLL:EXT:extensionname/Resources/Private/Language/locallang_db.xlf:model.preview_image',
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
'preview_image',
[
'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'
],
\TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
],
\TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
],
\TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
],
\TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
],
\TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
]
],
'foreign_match_fields' => [
'fieldname' => 'preview_image',
'tablenames' => 'table',
'table_local' => 'sys_file',
],
'maxitems' => 1,
'minitems' => 1
],
$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
),
],
this results in the user not being able to add a new image after removing it and not being able to save/reload the record.
Updated by Joerg Kummer over 3 years ago
We can confirm this issue with version 10.4.12
Updated by Tim Karliczek over 3 years ago
I can confirm this issue with TYPO3 10.4.12 too
Updated by Ralf Merz over 3 years ago
Maybe not the same, but maybe it is:
i have a FlexForm field with type="group".
<settings.configuration.contentElement>
<TCEforms>
<label>LLL:EXT:ft_customcontentelements/Resources/Private/Language/locallang.xlf:contentElement.topModule.FF.contentElement</label>
<config>
<type>group</type>
<internal_type>db</internal_type>
<allowed>tt_content</allowed>
<size>1</size>
<minitems>1</minitems>
<maxitems>1</maxitems>
</config>
</TCEforms>
</settings.configuration.contentElement>
Although I select a content element, I cannot save the record, as TYPO3 complains that the field should be filled out properly. This EXT was used in v8 before and now it's broken with that FlexForm.
Updated by Joey Bouten over 3 years ago
In our case of TCA field on pages i can confirm its fixed on v10.4.13
Updated by Frans Saris over 3 years ago
- Related to Bug #93091: Missing "Create new relation"-buttons after deleting the former relation added
Updated by Jan Kornblum over 3 years ago
I can confirm this is fixed for TCA fields in 10.4.13 with #91808
Updated by Frank Gerards over 2 years ago
I can confirm a use case, where this behaviour is NOT fixed:
steps to reproduce:
- define a table-TCA (TABLE_A) with a FAL relation field
- define a parent-table TCA (TABLE_B) with a field type "inline" which relates to TABLE_A
- add new TABLE_B record and dont save yet - add a TABLE_A item as IRRE relation
result: The "Add image" Button is hidden in the inline child.
After saving TABLE_B record and reopening the TABLE_A inline relation, the "Add image" button is there.
UPDATE: to me, it this seems like a regression introduced by https://github.com/TYPO3/typo3/commit/516b37e6d8 - if i revert this change, the "Add image" button in the case described above works
Updated by Christian Kuhn over 2 years ago
- Related to Bug #93238: Regression: After deleting image in record "add" button is not displayed again added
Updated by Christian Kuhn over 2 years ago
- Related to Bug #91595: Not all elements displayed as button behave like buttons added
Updated by Christian Kuhn over 2 years ago
I guess we should put any left over issues into a new issue and set this one related.