#111137Copying a file does not copy translated metadata
Description
When a file is copied, only the metadata of the default language is copied. The translated metadata records of the source file are lost.
Steps to reproduce- Add a title to a file, then translate its metadata into another language
- Copy the file into another folder
- Open the metadata of the copy: only the default language record exists
*Expected*
The copy gets the translated metadata records, too.
*Cause*
@ResourceStorage::copyFile()@ copies $file->getMetaData()->get(). This is a single record, resolved for the current language. Records with sys_language_uid > 0 are not copied.
This also affects copying a folder, which uses the same code since #111081.
Reviews 1
Related issues 1
History 25
-
Wolfgang Klinger changed Related to #111081 <span data-processor="relativetime" data-value="2026-10-19T06:11:36+00:00" > 10/19/26, 06:11 </span>
-
Wolfgang Klinger changed assigned to Wolfgang Klinger <span data-processor="relativetime" data-value="2026-10-19T06:37:49+00:00" > 10/19/26, 06:37 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 96850 status
NewUnder Review <span data-processor="relativetime" data-value="2026-10-19T06:50:56+00:00" > 10/19/26, 06:50 </span> -
Gerrit Code Review pushed patch set 2 for main to change 96850 <span data-processor="relativetime" data-value="2026-11-11T10:02:01+00:00" > 11/11/26, 10:02 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 96850 <span data-processor="relativetime" data-value="2026-11-12T21:13:34+00:00" > 11/12/26, 21:13 </span>