Project

General

Profile

Actions

Bug #76680

closed

FAL Media Element cannot be expanded when table name contains word "header"

Added by Pawel Stanczak almost 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2016-06-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
fal, form wizard, expand, toggle, _header
Complexity:
Is Regression:
No
Sprint Focus:

Description

If you crate a table with "_header" word in the table name and having media element, then after save, you are no more able to edit the media element. It will not be expanded after klick on it. Reason for that is row 52

recordHeader.attr('id').replace('_header', '')

in file
/typo3/sysext/backend/Resources/Public/JavaScript/jsfunc.inline.js

This basically means that your form element id will be changed from tx_custom_header_element_header to the tx_custom_element_header and toggleEvent will not work anymore. Simple workaround for that is to change the 52 line in that line:
recordHeader.attr('id').replace(/\_header$/, ''),

Simple regex update replace "_header" only at the end of the id string.


Files

Typo3_FAL_Fix.patch (693 Bytes) Typo3_FAL_Fix.patch Pawel Stanczak, 2016-06-17 14:09
Actions

Also available in: Atom PDF