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

SCI-4109 fix the file copying
This commit is contained in:
Alex Kriuchykhin 2019-12-09 16:04:43 +01:00 committed by GitHub
commit 7a97f813b2
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
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