diff options
author | Go MAEDA <maeda@farend.jp> | 2022-08-24 13:21:50 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2022-08-24 13:21:50 +0000 |
commit | f8033a069f99fd9947f05c2f4076bd8f0f575f98 (patch) | |
tree | 78d2330db21ecf052a618bf47324047183dc4fb6 /app/controllers/timelog_controller.rb | |
parent | 35b2d6a244803a4f0a767a5ff5bcb9137a1d60c4 (diff) | |
download | redmine-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.rb | 2 |
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 |