Bug #89161
closedSuggest Wizard for type=group inserts prepared labels as HTML content
100%
Description
Problem¶
When applying a record provided by the Suggest wizard within a database field of type=group, HTML gets applied together with the shortened label (if the record title is too long and gets shortened).
This happens because the Suggest wizard provides prepared labels. If a record is longer than the maximum length defined in the backend user settings, the label will be wrapped within a <span>
element. As the label is applied as <option>
within the appropriate <select>
field of the database field in the form, the plain HTML will be printed.
Repro¶
1. Create a page with a long page title
2. Go to any page and search in field "content_from_pid" for the page
3. Apply the suggestion from Suggest wizard
4. The <select> should now contain something like <span title="This is a pretty long page title which was created for testing only">This is a pretty long page...</span>
Expected behaviour¶
The <select>
should contain an option with content "This is a pretty long page..." only.
Problem could be reproduced with TYPO3 9.5 and current master (not tested with 8.7).
Updated by Gerrit Code Review about 5 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/c/Packages/TYPO3.CMS/+/61698
Updated by Gerrit Code Review about 5 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61673
Updated by Anonymous about 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 265f80b73600960311b1a3ca503a405b31f9092b.