Issue Bug Under Review

#111137Copying a file does not copy translated metadata

Wolfgang Klinger 10/19/26, 06:10 updated 11/12/26, 21:13

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
  1. Add a title to a file, then translate its metadata into another language
  2. Copy the file into another folder
  3. 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

History 25