Project

General

Profile

Actions

Bug #78050

closed

Translation of inline records not working correctly with categories

Added by Markus Mächler about 8 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend JavaScript
Target version:
-
Start date:
2016-09-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

There is an issue when using inline records with categories on translated records. If both the parent record and the inline record have categories I get a JavaScript error when I want to use "Localize all records" and the inline record does not update. If I reload the page then the record is translated correctly.

The easiest way to reproduce the issue is to use a fresh TYPO3 7.6 installation and install the news extension. (However it is reproducible with any element that has inline records)

  1. Install TYPO3 7.6
  2. Install news extension
  3. Create and translate a sysfolder
  4. Enable the option "records.contentElementRelation" in the news extension via extension manager
  5. Add new news entry with a content element relation e.g. a text element
  6. Translate the news record
  7. Hit "Localize all records" on the content element relation of the translated record

This will produce the following JavaScript error:

Uncaught TypeError: Cannot read property 'dom' of null 
tree.js:73

The problem is, that somehow TYPO3 wants to update the form element data[tt_content][{uid}][categories] instead of data[tx_news_domain_model_news][{uid}][categories]. That leads to a JavaScript error because the element with the id md5('data[tt_content][{uid}][categories]') is not found.

Actions

Also available in: Atom PDF