Bug #81806
closedUnescaped value in FormEngine.removeOption selector query
100%
Description
I have a form field whose values comes from a list of subscribed classes for some roles.
The flexform TCA for this form field looks like that:
<providers>
<TCEforms>
<label>LLL:EXT:my_ext/Resources/Private/Language/locallang.xlf:flexform.sheets.general.providers</label>
<config>
<type>select</type>
<itemsProcFunc>Vendor\MyExt\Flexform\Helper->renderProviderList</itemsProcFunc>
<maxitems>100</maxitems>
<size>4</size>
</config>
</TCEforms>
</providers>
The computed items list looks like:
[
[ 'First provider', 'Vendor\\MyExt\\FirstProvider' ],
[ 'Second provider', 'Vendor\\MyExt\\SecondProvider' ]
]
Manipulating the form element does not work well.
The issue is removing an element from the selected box is not working. After step by step debugging, it looks like the value $(this).attr('value')
needs selector string escaping on line 569 of EXT:backend/Resources/Public/JavaScript/FormEngine.js
.
Also affect 8 LTS. The affected code portion is the same. Only one line down.
Updated by Susanne Moog over 7 years ago
- Tags changed from JaáVht to JavaScript
- Sprint Focus set to On Location Sprint
Updated by Gerrit Code Review over 7 years ago
- Status changed from New to Under Review
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/53499
Updated by Gerrit Code Review over 7 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53557
Updated by Anonymous over 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 8f9729c66316887966256d7b6c15c20c12f492e5.
Updated by Gerrit Code Review over 7 years ago
- Status changed from Resolved 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/53563
Updated by Anonymous over 7 years ago
- Status changed from Under Review to Resolved
Applied in changeset 193d6572d102e51074362290dd0a79a2d4ae0dc1.
Updated by Gerrit Code Review over 7 years ago
- Status changed from Resolved 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/53572
Updated by Anonymous over 7 years ago
- Status changed from Under Review to Resolved
Applied in changeset 1cf77c844e0cae7d0f9460f44a7decd207735e2b.