Bug #65059

Non-translated FAL metadata appears as UID-list in linked record

Added by Viktor Livakivskyi over 4 years ago. Updated 4 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
Start date:
2015-02-13
Due date:
% Done:

0%

TYPO3 Version:
6.2
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Whenever a translation is made to FAL record in TYPO3 6.2, and such a FAL record is linked to any other record (via sys_file_reference) everything is ok, until sys_file_reference is translated to a language, which doesn't have a translation in sys_file_metadata. In this case, likst of UIDs of available translations from sys_file_metadata for this record is shown.

Let's consider following example (with screenshots):
1. File is translated through Filelist into Italian and French

2. File is linked to a record in default language and "title" with "description" are correctly taken from metadata

3. Record with sys_file_referecne is translated to Italian and everyting is good, becasue sys_file_metadata already contains Italian translation

4. Record with sys_file_reference is translated to German, but here we run in a trouble, becasue no German translation is available for metadata and instead list of existing UIDs from metadata translations is shown: default, Italian and French

After some debugging I've found, that problem persists in FormDataTraverser->getFieldValueRecursive(), which receives in latter case this structure: "uid_local|metadata|title". It succesfully finds file with uid_local, then it fetches metadata as list of available metadata UIDs, and then can't fetch title, because it is not there.

TYPO3 6.2.9

filelist.PNG View (10.4 KB) Viktor Livakivskyi, 2015-02-13 14:43

file_reference_default.PNG View (17.9 KB) Viktor Livakivskyi, 2015-02-13 14:43

file_reference_it.PNG View (16.6 KB) Viktor Livakivskyi, 2015-02-13 14:43

file_reference_de.PNG View (16.5 KB) Viktor Livakivskyi, 2015-02-13 14:43


Related issues

Related to TYPO3 Core - Bug #79834: Suggestions with "placeholder" fetches first result in database New 2017-02-15

History

#1 Updated by Andrea Herzog-Kienast over 4 years ago

  • Target version set to 7.1 (Cleanup)

Same problem in 7.1 - If more than two languages (+default) are given. And/or if metadata is translated in more than one language. If metadata is not translated, default metadata is shown.

#2 Updated by Benni Mack over 4 years ago

  • Target version changed from 7.1 (Cleanup) to 7.4 (Backend)

#3 Updated by Susanne Moog about 4 years ago

  • Target version changed from 7.4 (Backend) to 7.5

#4 Updated by Benni Mack almost 4 years ago

  • Target version changed from 7.5 to 7 LTS

#5 Updated by Mathias Schreiber almost 4 years ago

  • Description updated (diff)

#6 Updated by Riccardo De Contardi over 3 years ago

I tried to reproduce the problem on the latest master 8.2-dev in this way:

1) I have 3 languages: Italian(0), English(1), French(2)
2) Upload an image, edit its title in italian
3) create the two translation for the image title in english and french
4) I have a page with all two translations
5) I create a text w/media CE and set the image of point 1
6) create a translation of the CE in english
7) create a translation of the CE in french (start with: italian)

the result is: in all languages, the "default" title is that one of the french translation, at least on the backend; on the frontend, the translation of the title works fine.

#7 Updated by Viktor Livakivskyi over 3 years ago

Hi, Riccardo.

Thank you for your investigation.
I didn't try it on 8.x yet, but the key thing to reproduce it is to not translate the file in filelist to all languages, but only to some of them.

E.g. in your case:
...
3) create only one translation for the image title (e.g. in English)
...
6) create a translation of the CE in English -> this should be ok and title will be shown
7) create a translation of the CE in French -> this should lead to a result, described in an issue

Reproduced in 6.2. According to Andrea Herzog-Kienast, also on 7.
Didn't try on 8 though.

#8 Updated by Riccardo De Contardi over 3 years ago

1) I am not able to reproduce the issue on 6.2.25
2) on both 7.6.9 and 8.2-dev, if I don't add the translation on one language (e.g. french) the title of the image shown on backend... is that of the other translation (english)! It seems that the first available is taken into account (!)

#9 Updated by Riccardo De Contardi almost 2 years ago

  • Related to Bug #79834: Suggestions with "placeholder" fetches first result in database added

#10 Updated by Susanne Moog 7 months ago

  • Category changed from File Abstraction Layer (FAL) to FormEngine aka TCEforms

#11 Updated by Riccardo De Contardi 4 months ago

I repeated my previous tests on 9.5.7:

Test 1

1) I have 3 languages: Italian(0), English(1), French(2)
2) Upload an image, edit its title in italian
3) create the two translation for the image title in english and french
4) I have a page with all two translations
5) I create a text w/media CE and set the image of point 1
6) create a translation of the CE in english
7) create a translation of the CE in french (start with: italian)

#Results:

Italian English French
Frontend Italian title English title French Title
Backend Italian title English title French Title

Test 2

1) I have 3 languages: Italian(0), English(1), French(2)
2) Upload an image, edit its title in italian
3) create only ONE translation for the image title ONLY in english
4) I have a page with all two translations
5) I create a text w/media CE and set the image of point 1
6) create a translation of the CE in english
7) create a translation of the CE in french (start with: italian)

#Results:

Italian English French
Frontend Italian title English title Italian Title
Backend Italian title English title Italian Title

I tried also with

7.1) create a translation of the CE in french (start with: english)

but the results are the same

I tried with both these settings in the "Site" module > French language

- fallbackType = strict
- fallbackType = fallback; Fallback to other Language(s) = english

but the result is the same. It seems that the "default" metadata is always taken

Also available in: Atom PDF