mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-06 06:56:54 +08:00
Fix link to inventory CSV file [SCI-2804]
This commit is contained in:
parent
83566cc9d5
commit
990d3a34ca
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue