Merge pull request #2232 from biosistemika/SCI-4109-export-with-assigned-item-bugfix

SCI-4109 fix the file copying
This commit is contained in:
Miha Mencin 2019-11-25 17:32:34 +01:00 committed by GitHub
commit b968de96c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -269,7 +269,9 @@ class TeamZipExport < ZipExport
# Save all attachments (it doesn't work directly in callback function # Save all attachments (it doesn't work directly in callback function
assets.each do |asset, asset_path| 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 end
csv_file_path csv_file_path