diff --git a/app/models/team_zip_export.rb b/app/models/team_zip_export.rb
index 2a55d2de4..ee216f1f5 100644
--- a/app/models/team_zip_export.rb
+++ b/app/models/team_zip_export.rb
@@ -129,22 +129,10 @@ class TeamZipExport < ZipExport
)
file = FileUtils.touch("#{project_path}/#{html_name}").first
File.open(file, 'wb') { |f| f.write(project_report_pdf) }
-
- # Add Handsontable and dependent JS files (mimick frontend formula
- # processing).
- required_js = %w(handsontable.full.min.js lodash.js numeral.js numeric.js
- md5.js jstat.js formula.js parser.js ruleJS.js
- handsontable.formula.js big.min.js)
- required_js.each do |filename|
- filepath = File.join(Rails.root,
- "vendor/assets/javascripts/#{filename}")
- dest_folder = "#{project_path}/"
- FileUtils.cp(filepath, dest_folder)
- end
end
-
+ ensure
# Change current dir outside tmp_dir, since tmp_dir will be deleted
- Dir.chdir(File.join(Rails.root, 'tmp'))
+ Dir.chdir(Rails.root)
end
def generate_notification(user)
diff --git a/app/views/team_zip_exports/report.html.erb b/app/views/team_zip_exports/report.html.erb
index 2a8d3f81c..307880a2c 100644
--- a/app/views/team_zip_exports/report.html.erb
+++ b/app/views/team_zip_exports/report.html.erb
@@ -11,19 +11,41 @@
.html_safe %>
-
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+