From f051b58e09cbfbf2e44a8ec717445c8f42406a4f Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Wed, 28 Jan 2026 20:56:56 +0900 Subject: [PATCH] Preserve cover image information when copying document #2660 --- modules/file/file.controller.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/file/file.controller.php b/modules/file/file.controller.php index ba8876dbf..1e482ce9e 100644 --- a/modules/file/file.controller.php +++ b/modules/file/file.controller.php @@ -1865,7 +1865,14 @@ class FileController extends File foreach($source_file_list as $source_file) { - $this->copyFile($source_file, $module_srl, $upload_target_srl, $content); + $copied_file = $this->copyFile($source_file, $module_srl, $upload_target_srl, $content); + if ($source_file->cover_image == 'Y') + { + executeQuery('file.updateCoverImage', [ + 'file_srl' => $copied_file->get('file_srl'), + 'cover_image' => 'Y', + ]); + } } }