Actions
Bug #76680
closedFAL Media Element cannot be expanded when table name contains word "header"
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
Updated by Wouter Wolters almost 8 years ago
- Category changed from Form Framework to Backend User Interface
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.
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.
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