SCI-4109 fix the file copying

This commit is contained in:
Miha Mencin 2019-11-25 13:38:16 +01:00
parent 759b3acfe9
commit 48fc7708f8

View file

@ -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