Project

General

Profile

Actions

Bug #81165

open

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

Added by David Rellstab almost 7 years ago. Updated over 4 years ago.

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

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
medium
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.

Actions #1

Updated by Thomas Löffler over 6 years ago

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

Actions #2

Updated by Peter Rauber about 6 years 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...

Actions #3

Updated by Peter Rauber about 6 years ago

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

Actions #4

Updated by Mathias Schreiber about 6 years 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

Actions #5

Updated by Riccardo De Contardi over 5 years 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.

Actions #6

Updated by Riccardo De Contardi almost 5 years ago

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

Actions #7

Updated by Markus Klein over 4 years ago

  • Status changed from Needs Feedback to Accepted
  • Assignee deleted (Mathias Schreiber)
  • Complexity set to medium
Actions

Also available in: Atom PDF