Bug #76923
closedSuggest wizard on group field (with multiple true) adds element twice (maybe only in flexforms)
100%
Description
If one adds a group field to flexform like this:
<settings.test> <TCEforms> <label>Test</label> <config> <type>group</type> <internal_type>db</internal_type> <allowed>tx_test_domain_model_test</allowed> <size>1</size> <maxitems>9999</maxitems> <minitems>1</minitems> <multiple>1</multiple> <autoSizeMax>30</autoSizeMax> <size>10</size> <show_thumbs>1</show_thumbs> <wizards> <suggest> <type>suggest</type> </suggest> </wizards> </config> </TCEforms> </settings.test>
Results in element being added twice when using mouse click to select.
The issue does not exist when using keyboard Enter key.
The reason seems to be that it is added once via onSelect handler of autocomplete and once via the manual click handler.
Not sure if the manual click handler is actually necessary or if removing it would be a regression elsewhere.
Updated by Andreas Allacher almost 8 years ago
Seems to also be an issue with selectSideBySide (at least for flexform fields)
Tested with 7.6.9
Updated by Gerrit Code Review almost 8 years ago
- Status changed from New to Under Review
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49212
Updated by Gerrit Code Review almost 8 years ago
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49223
Updated by Alexander Opitz almost 8 years ago
Is #72738 eventually a duplicate of this one?
Updated by Gerrit Code Review over 7 years ago
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/49223
Updated by Gerrit Code Review over 7 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/49223
Updated by Gerrit Code Review over 7 years ago
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49862
Updated by Wiard van Rij over 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 9c33458ebdc7bcccffacd2c904c02dea0526dc6e.
Updated by Christian Kuhn over 7 years ago
example group_db_8 added to styleguide for this one.