Skip to content

Commit

Permalink
Merge pull request #7059 from ZitaNemeckova/fix_csv
Browse files Browse the repository at this point in the history
Fix csv download

(cherry picked from commit 8c1bd67)
  • Loading branch information
chessbyte authored and simaishi committed May 21, 2020
1 parent 4ad517e commit 6590dd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller/report_downloads.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def render_txt
# Send the current report in csv format
def render_csv
report = report_for_rendering
filename = filename_timestamp(@report.title)
filename = filename_timestamp(report.title)
disable_client_cache
send_data(report.to_csv, :filename => "#{filename}.csv")
end
Expand Down

0 comments on commit 6590dd8

Please sign in to comment.