Bug #65059
closedNon-translated FAL metadata appears as UID-list in linked record
0%
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
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.
Updated by Benni Mack over 9 years ago
- Target version changed from 7.1 (Cleanup) to 7.4 (Backend)
Updated by Susanne Moog over 9 years ago
- Target version changed from 7.4 (Backend) to 7.5
Updated by Benni Mack about 9 years ago
- Target version changed from 7.5 to 7 LTS
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.
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.
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 (!)
Updated by Riccardo De Contardi about 7 years ago
- Related to Bug #79834: Suggestions with "placeholder" fetches first result in database added
Updated by Susanne Moog almost 6 years ago
- Category changed from File Abstraction Layer (FAL) to FormEngine aka TCEforms
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
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.