Project

General

Profile

Actions

Bug #65059

closed

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

Added by Viktor Livakivskyi almost 10 years ago. Updated over 4 years ago.

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

0%

Estimated time:
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


Files

filelist.PNG (10.4 KB) filelist.PNG Viktor Livakivskyi, 2015-02-13 14:43
file_reference_default.PNG (17.9 KB) file_reference_default.PNG Viktor Livakivskyi, 2015-02-13 14:43
file_reference_it.PNG (16.6 KB) file_reference_it.PNG Viktor Livakivskyi, 2015-02-13 14:43
file_reference_de.PNG (16.5 KB) file_reference_de.PNG Viktor Livakivskyi, 2015-02-13 14:43

Related issues 1 (0 open1 closed)

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

Actions
Actions #1

Updated by Andrea Herzog-Kienast almost 10 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.

Actions #2

Updated by Benni Mack over 9 years ago

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

Updated by Susanne Moog over 9 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #4

Updated by Benni Mack about 9 years ago

  • Target version changed from 7.5 to 7 LTS
Actions #5

Updated by Mathias Schreiber about 9 years ago

  • Description updated (diff)
Actions #6

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

Actions #7

Updated by Viktor Livakivskyi over 8 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.

Actions #8

Updated by Riccardo De Contardi over 8 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 (!)

Actions #9

Updated by Riccardo De Contardi about 7 years ago

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

Updated by Susanne Moog over 5 years ago

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

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

Actions #12

Updated by Benni Mack over 4 years ago

  • Status changed from New to Closed

will mark it as closed then. if you feel differently, let me know so I will re-open the issue.

Actions

Also available in: Atom PDF