summaryrefslogtreecommitdiffstats
path: root/app/controllers/timelog_controller.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-08-24 13:21:50 +0000
committerGo MAEDA <maeda@farend.jp>2022-08-24 13:21:50 +0000
commitf8033a069f99fd9947f05c2f4076bd8f0f575f98 (patch)
tree78d2330db21ecf052a618bf47324047183dc4fb6 /app/controllers/timelog_controller.rb
parent35b2d6a244803a4f0a767a5ff5bcb9137a1d60c4 (diff)
downloadredmine-f8033a069f99fd9947f05c2f4076bd8f0f575f98.tar.gz
redmine-f8033a069f99fd9947f05c2f4076bd8f0f575f98.zip
Use query name as the file name when exporting queries (#16207).
Patch by Mizuki ISHIKAWA. git-svn-id: https://svn.redmine.org/redmine/trunk@21773 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/timelog_controller.rb')
-rw-r--r--app/controllers/timelog_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb
index c0570c304..d47687f1b 100644
--- a/app/controllers/timelog_controller.rb
+++ b/app/controllers/timelog_controller.rb
@@ -67,7 +67,7 @@ class TimelogController < ApplicationController
format.csv do
# Export all entries
@entries = scope.to_a
- send_data(query_to_csv(@entries, @query, params), :type => 'text/csv; header=present', :filename => 'timelog.csv')
+ send_data(query_to_csv(@entries, @query, params), :type => 'text/csv; header=present', :filename => "#{filename_for_export(@query, 'timelog')}.csv")
end
end
end