Bug #78985
closedFlexform inline elements with dots need escaping
100%
Description
If you are using TCA fields with dots the dots need to be escaped because javascript cant find the element if the id has a dot inside.
The bug occurs if you have an element linke <settings.testImage> from type "inline" with "maxitems" set to 1 and minitems set to 1.
The button to add an image disapears when adding one image and does not show up again, when deleting that image. Thats a huge problem when that field is a required field because u cant add an image again, but you cant save the content element, too.
The Problem is located in file sysext/backend/Resources/Public/JavaScript/jsfunc.inline.js in following functions:
- hideElementsWithClassName
- showElementsWithClassName
Inside the functions the 'parentObject' need to be escaped through the available function this.escapeObjectId() to work properly.
Like this:
hideElementsWithClassName: function (selector, parentElement) { TYPO3.jQuery('#' + this.escapeObjectId(parentElement)).find(selector).fadeOut(200); }, showElementsWithClassName: function (selector, parentElement) { TYPO3.jQuery('#' + this.escapeObjectId(parentElement)).find(selector).fadeIn(200); },
This bug occurs with Version 7.6
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/51014
Updated by Gerrit Code Review over 7 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51014
Updated by Gerrit Code Review over 7 years ago
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/52082
Updated by Georg Ringer over 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 23c68013ee24646ae0cf863c8d86bcead893553e.