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 #1

Updated by Philipp Wrann over 8 years ago

Can someone update the title?

requestUpdate on select field using rendermode=tree causes javascript error

Dont know how i came up with that title xD

Actions #2

Updated by Philipp Wrann over 8 years ago

Forgot the screenshot

Actions #3

Updated by Andreas Kienast over 8 years ago

  • Subject changed from RequestUpdate in causes javascript error in Tree to requestUpdate on select field using rendermode=tree causes javascript error
Actions #4

Updated by Andreas Kienast over 8 years ago

  • Status changed from New to In Progress
  • Sprint Focus set to Remote Sprint
Actions #5

Updated by Andreas Kienast over 8 years ago

  • Target version changed from next-patchlevel to 7 LTS
Actions #6

Updated by Gerrit Code Review over 8 years ago

  • Status changed from In Progress 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 http://review.typo3.org/43697

Actions #7

Updated by Gerrit Code Review over 8 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43697

Actions #8

Updated by Gerrit Code Review over 8 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43697

Actions #9

Updated by Gerrit Code Review over 8 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43697

Actions #10

Updated by Andreas Fernandez over 8 years ago

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

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF