Project

General

Profile

Actions

Bug #89161

closed

Suggest Wizard for type=group inserts prepared labels as HTML content

Added by Elias Häußler about 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2019-09-12
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

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).

Actions #1

Updated by Elias Häußler about 5 years ago

  • Description updated (diff)
Actions #2

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

Actions #3

Updated by Elias Häußler about 5 years ago

  • Description updated (diff)
Actions #4

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

Actions #5

Updated by Anonymous about 5 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Benni Mack almost 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF