Project

General

Profile

Actions

Bug #76923

closed

Suggest wizard on group field (with multiple true) adds element twice (maybe only in flexforms)

Added by Andreas Allacher almost 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2016-07-04
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.

Actions

Also available in: Atom PDF