Project

General

Profile

Actions

Bug #78050

closed

Translation of inline records not working correctly with categories

Added by Markus Mächler over 7 years ago. Updated about 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 #1

Updated by Riccardo De Contardi over 7 years ago

  • Category set to Backend JavaScript

Still present on 7.6.13

Actions #2

Updated by Christoph Vigano over 6 years ago

I also see this error when trying to translate new text records inside of a Grid Element. TYPO3 Version 7.6.21.

Actions #3

Updated by Frank Nägler over 6 years ago

  • Status changed from New to Needs Feedback

is this still an issue in v8 or only in v7?

Actions #4

Updated by Markus Mächler over 6 years ago

this seems to be resolved in typo3 v8

Actions #5

Updated by Frank Nägler over 6 years ago

  • Status changed from Needs Feedback to Accepted

thanks for your feedback, so this is only an issue in v7

Actions #6

Updated by Susanne Moog about 4 years ago

  • Status changed from Accepted to Closed

As v7 is not supported anymore, closing the issue here as fixed in later versions.

Actions

Also available in: Atom PDF