Bug #55835
closed
Suggest wizard does not work correctly in flexforms
Added by Philipp Wrann almost 11 years ago.
Updated about 6 years ago.
Category:
Backend User Interface
Description
for my plugin i use multiple suggest wizards in the flexform.
The behaviour is really weird, once i select something in wizard a everything works, when selecting something in wizard b the option i chose in wizard a is taken instead. When i add a few elements via the browser to select c and i delete one of them all will vanish...
The shown options are correct but the wrong ones are insterted plus the weird problem with the removing of records....
could be regression
48474
47413
Files
in jsfunc.tceforms_suggest.js this selector [line 101 on current master]
var suggestLabelNode = Element.select(this.escapeObjectId(item.id), '.suggest-label')[0];
allways returns the first selected item.
just a first hint... i dont have time to read further but maybe it helps.
does not explain the removing behaviour though
- Category changed from FormEngine aka TCEforms to Backend User Interface
- Status changed from New to Accepted
- Target version deleted (
6.2.0)
- TYPO3 Version changed from 6.2 to 4.5
Can confirm that for 4.5 too
Also 4.7, additionally in 4.7 (4.7.17) it appears also when only 1 suggest wizard is rendered.
Also in 6.2.3. I join a patch of jsfunc.tceforms_suggest.js for this version. Please check it cause I'm not expert in prototype library but this works for me.
- Status changed from Accepted to Under Review
What is the status of this review? Why `item.id` needs to be escaped with `this.escapeObjectId()`?
Hi Daniel!
Please post feedback to a patch directly in Gerrit. I just invited you there. Login with your normal TYPO3 account.
The escape is necessary due to [] characters, see https://review.typo3.org/20045
I fix a JS error in #59655. Maybe this is related to this particular issue, because it fixed it for me...
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF