Fix link to inventory CSV file [SCI-2804]

This commit is contained in:
Oleksii Kriuchykhin 2018-10-24 12:59:04 +02:00
parent 83566cc9d5
commit 990d3a34ca

View file

@ -63,6 +63,7 @@ class TeamZipExport < ZipExport
root += "/#{project_name}"
FileUtils.mkdir_p(root)
# Change current dir for correct generation of relative links
Dir.chdir(root)
root = '.'
@ -237,7 +238,7 @@ class TeamZipExport < ZipExport
File.open(file, 'wb') { |f| f.write asset.open.read }
end
repo_name
csv_file_path
end
# Recursive zipping