Project

General

Profile

Actions

Bug #70272

closed

requestUpdate on select field using rendermode=tree causes javascript error

Added by Philipp Wrann over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
Start date:
2015-10-01
Due date:
% Done:

100%

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

Description

If you define a select field as renderMode=Tree and set the field as "requestUpdate" field, a javascript error will break everything because the printed string has unescaped double quotes.

The problem is located in SelectTreeElement::render in line 136 (see screensot)

Suggestion wrap the $onChange variable in addslashes before concatenating the html-string.


Files

tca-tree-onchange.png (95.4 KB) tca-tree-onchange.png Philipp Wrann, 2015-10-01 15:55
Actions

Also available in: Atom PDF