Bug #75040
closedplaceholder pointing to column of related record shows values from wrong language
Added by Philipp Wrann over 8 years ago. Updated about 6 years ago.
100%
Description
Hope this is not a duplicte.
If i create a file Reference on default language it happens that the placeholder is calculated from some translation.
In my case i added a media-field and handle inline relations to sys_file_reference records. When i edit the default language the meta title|alternative of the first translation record is shown.
The data is saved correctly, so the aggregate and the sys_file_reference both have sys_language_uid set to 0 - but still the wrong metadata is used as placeholder.
The language setting should be taken into account there.
Updated by Florian Baumann over 8 years ago
I can confirm this. It always takes the last created translation of the record.
In FE, the correct translation is taken for the rendering.
Updated by Peter Linzenkirchner over 8 years ago
I can confirm it for the current dev (8.1.0-dev).
Updated by Jeffrey Nellissen over 8 years ago
I also can confirm this bug in the current stable version 7.6.9. It is really confusing for our editors and it is not only happened in the default language. The placeholder for the title, caption,... will always taken his content from the last created language version of a sys_file, not from the choosen sys_language. Like Florian wrote, in FE it works like a charm.
Updated by Andreas Wolf over 8 years ago
- Status changed from New to Accepted
I can also confirm this. My use case was a relation to sys_file, which resolves the placeholders from sys_file_metadata. The problem here is that the sys_language_uid is not available when resolving the records, which happens in TcaInline::resolveRelatedRecords()
. Therefore, a list of the sys_file_metadata records for all languages is fetched, from which one is semi-randomly chosen (it always uses the first one returned).
My idea for a fix is to add the language to use to $result
, which then needs to pass it on. In general, it would be good to pass on this context in a more robust way, both here and in DataHandler.
Updated by Tymoteusz Motylewski almost 8 years ago
can somebody provide a test extension to ease reproducing and fixing the issue?
is the https://forge.typo3.org/issues/78395 a duplicate?
Updated by Florian Baumann almost 8 years ago
There is no need for an extension to reproduce that.
Do the following on an instance with more than one language installed:
1) Add a new file to the FAL
2) Add the file's FAL record translations (fill in the title) for all the available languages
3) Add a new text & media content element and import the newly created file there
4) Take a look at the title field. You will notice the last created translation of the file as a default placeholder there
I just tested this on a TYPO3 7.6.12. The issue still persists.
Updated by Tymoteusz Motylewski almost 8 years ago
Hi Florian
in the step 2) you're referring to translating the file in th filelist module?
Updated by Tymoteusz Motylewski almost 8 years ago
I've managed to reproduce it. The issue is similar to #76048 - we lack the language context in there too.
Updated by Helmut Hummel over 7 years ago
- Related to deleted (Bug #78897: file references consider wrong language uid for metadata)
Updated by Helmut Hummel over 7 years ago
- Has duplicate Bug #78897: file references consider wrong language uid for metadata added
Updated by Gerrit Code Review over 7 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53483
Updated by Gerrit Code Review over 7 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53483
Updated by Gerrit Code Review over 7 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53483
Updated by Gerrit Code Review about 7 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53483
Updated by Gerrit Code Review about 7 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53483
Updated by Gerrit Code Review about 7 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53483
Updated by Gerrit Code Review about 7 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53483
Updated by Christian Kuhn about 7 years ago
- Has duplicate Bug #82193: FAL relation: Default file meta data values shown in wrong language added
Updated by Gerrit Code Review about 7 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54686
Updated by Gerrit Code Review about 7 years ago
Patch set 2 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54686
Updated by Gerrit Code Review about 7 years ago
Patch set 3 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54686
Updated by Gerrit Code Review about 7 years ago
Patch set 4 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54686
Updated by Gerrit Code Review about 7 years ago
Patch set 5 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54686
Updated by Gerrit Code Review about 7 years ago
Patch set 6 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54686
Updated by Gerrit Code Review almost 7 years ago
Patch set 7 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54686
Updated by Gerrit Code Review almost 7 years ago
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54722
Updated by Gerrit Code Review almost 7 years ago
Patch set 8 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54686
Updated by Gerrit Code Review almost 7 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54722
Updated by Nicole Cordes almost 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 5be3ec134bf1186260e3172832e8c69dfd13913d.
Updated by Markus Klein almost 7 years ago
- % Done changed from 100 to 0
master patch had to be reverted
Updated by Gerrit Code Review almost 7 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54831
Updated by Gerrit Code Review almost 7 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54831
Updated by Christian Kuhn almost 7 years ago
- Has duplicate Bug #83150: Sys_file_reference in default language showing metadata of translation added
Updated by Gerrit Code Review almost 7 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54831
Updated by Gerrit Code Review almost 7 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54831
Updated by Gerrit Code Review almost 7 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54831
Updated by Gerrit Code Review almost 7 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54831
Updated by Gerrit Code Review almost 7 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54831
Updated by Gerrit Code Review almost 7 years ago
Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54831
Updated by Nicole Cordes almost 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 01465531745c930797664f14549ab917b51bd8e5.
Updated by Gerrit Code Review almost 7 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54888
Updated by Nicole Cordes almost 7 years ago
- Status changed from Under Review to Resolved
Applied in changeset 5b4e54a7b26b6b693e89cdf2d3669686a9ffa9ed.
Updated by Helmut Hummel over 6 years ago
- Related to Bug #85711: File language field is rendered twice and sys_language_uid is never rendered in sys_file_metadata added