mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Preserve cover image information when copying document #2660
This commit is contained in:
parent
bb6eeb926e
commit
f051b58e09
1 changed files with 8 additions and 1 deletions
|
|
@ -1865,7 +1865,14 @@ class FileController extends File
|
||||||
|
|
||||||
foreach($source_file_list as $source_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',
|
||||||
|
]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue