Bug #81165

Creating IRRE record within a non-default language record sets wrong sys_language_uid

Added by David Rellstab about 2 years ago. Updated about 2 months ago.

Status:
Needs Feedback
Priority:
Must have
Category:
Localization
Target version:
-
Start date:
2017-05-08
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Steps to reproducs:

1. Create new record containing an IRRE field (e.g. news) and set language to something different than 0 and -1 (in this example 1)
2. Create IRRE record within (e.g. fal_media) before saving the main record
3. Save main record

Expected Result: Both records have sys_language_uid correctly set to 1

Actual Result: Main record has sys_language_uid set to 1, child (sys_file_reference) has sys_language_uid set to 0.

This leads to a corrupt file reference.

History

#1 Updated by Thomas Löffler over 1 year ago

I can confirm this in TYPO3 7.6.21 and with sys_language_uid = -1.

#2 Updated by Peter Rauber over 1 year ago

I confirm this, too. This bug is in state "New" for 10 month??? Don't know how I shall explain that to our customers...

#3 Updated by Peter Rauber over 1 year ago

Looks like it's already mentioned in https://forge.typo3.org/issues/48883. But has that been released for TYPO3 8.x?

#4 Updated by Mathias Schreiber over 1 year ago

  • Status changed from New to Needs Feedback
  • Assignee set to Mathias Schreiber

Did you try to reproduce with Tymek remarks added?
https://forge.typo3.org/issues/48883#note-32

#5 Updated by Riccardo De Contardi 9 months ago

I tried the following tests:

Prerequisites

- fresh TYPO3 installation, 8.7.19
- latest version of EXT:news
- two languages, italian (Default) and English (ID=1)
- a news sysfolder, translated

Test 1

1. go to "news" sysfolder
2. create a new "news" record, type a headline
3. go to "language" tab and select "English"
4. Without saving it, go to "Media" tab and add a relation to a file
5. Save
6. Check in sys_file_reference table the field "sys_language_uid" for the relation created at point 4

Test 2

1. go to "news" sysfolder
2. create a new "news" record, type a headline
3. go to "language" tab and select "All"
4. Without saving it, go to "Media" tab and add a relation to a file
5. Save
6. Check in sys_file_reference table the field "sys_language_uid" for the relation created at point 4

Results

On both cases, the field "sys_language_uid" has "0" as value.

#6 Updated by Riccardo De Contardi about 2 months ago

I repeated the test described on my previous comment on TYPO3 9.5.6 and the results are the same.

Also available in: Atom PDF