mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-25 00:03:27 +08:00
Merge pull request #2232 from biosistemika/SCI-4109-export-with-assigned-item-bugfix
SCI-4109 fix the file copying
This commit is contained in:
commit
b968de96c7
1 changed files with 3 additions and 1 deletions
|
@ -269,7 +269,9 @@ class TeamZipExport < ZipExport
|
|||
|
||||
# Save all attachments (it doesn't work directly in callback function
|
||||
assets.each do |asset, asset_path|
|
||||
asset.file.copy_to_local_file(:original, asset_path)
|
||||
asset.file.open do |file|
|
||||
FileUtils.cp(file.path, asset_path)
|
||||
end
|
||||
end
|
||||
|
||||
csv_file_path
|
||||
|
|
Loading…
Reference in a new issue