Issue Bug Closed

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

Pawel Stanczak 06/17/16, 14:09 updated 02/03/17, 21:11

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.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.