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

Updated by Wouter Wolters almost 8 years ago

  • Category changed from Form Framework to Backend User Interface
Actions #2

Updated by Wouter Wolters almost 8 years ago

  • Status changed from New to Needs Feedback

Hi, would be really great if you could attach a small example extension how to reproduce your issue. Thanks in advance.

Actions #3

Updated by Riccardo De Contardi over 7 years ago

I notice that on version 7.6.12 the line cited in the description has been changed to:

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

Is it sufficient to consider this issue closed? Thank you.

Actions #4

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Needs Feedback to Closed

90 days without feedback > Closing.

If you think that this is the wrong decision or experience the issue again or have more information about it, please reopen it or open a new issue with a reference to this one.

Thank you.

Actions

Also available in: Atom PDF