#97850Wrong sys_language_uid in sys_file_reference after copy and paste
Description
*Scenario:*
I have a page with 3 languages (0=en, 1=fi, 2=sv).
As an editor with access to all languages, I copy a content element with FAL record from a Swedish page to a Finnish page.
*Expectation:*
The colleague who only has access to the Finnish language can edit this record.
*Reality:*
The Finnish editor is not allowed to edit this record, because we get a mixed record after inserting it. The sys_language_uid in the sys_file_reference table is not adjusted.
The sys_language_uid in tt_content was set to fi (UID=1). However, the sys_language_uid in the sys_file_reference is taken as sv (UID = 2).
*Tested with:*
TYPO3 8.7.45 – 11.5.12
PHP 7.4
Reviews 3
History 4
-
Nikita Hovratov commented 07/08/22, 15:45
-
Benni Mack changed status
NewNeeds Feedback 09/18/23, 10:15 -
Sybille Peters commented and changed status
Needs FeedbackClosed 01/15/25, 10:38I tried reproducing this with current main (v14). I cannot reproduce it. I think it may have been fixed with https://review.typo3.org/c/Packages/TYPO3.CMS/+/86773.
Please note that the patch was only backported to v13, not to previous versions!
There are a lot of very similar issue all relating to a mismatch of sys_language_uid of sys_file_reference and the referencing record. This issue looks like a duplicate. Though in this issue a copy was performed and in the other issues a translation was performed, I think the root cause is probably the same.
Merged patch: https://review.typo3.org/c/Packages/TYPO3.CMS/+/86773 (was merged for >= v13)
- https://forge.typo3.org/issues/89787
- https://forge.typo3.org/issues/104956
- https://forge.typo3.org/issues/75400
- https://forge.typo3.org/issues/39054
patch (not merged): https://review.typo3.org/c/Packages/TYPO3.CMS/+/87595?tab=comments
-
Sybille Peters commented 01/15/25, 10:41
How did you copy the element? With the clipboard or the Translation Button?