summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2023-03-01 08:47:28 +0000
committerGo MAEDA <maeda@farend.jp>2023-03-01 08:47:28 +0000
commit4dc56cd943b6cb5cfaae8bd21db2c8ef82e7a50c (patch)
tree02cb6588ca4609f93f5ea23919d72820361fc65a /app/controllers
parenta499d688021a5ba9f7cb8dba18bb3dc6b0199073 (diff)
downloadredmine-4dc56cd943b6cb5cfaae8bd21db2c8ef82e7a50c.tar.gz
redmine-4dc56cd943b6cb5cfaae8bd21db2c8ef82e7a50c.zip
Exporting UserQuery does not use the query name as file name (#37674, #38182).
Patch by Takenori TAKAKI. git-svn-id: https://svn.redmine.org/redmine/trunk@22121 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/users_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index a6cad6b2f..77ec1a601 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -61,7 +61,7 @@ class UsersController < 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 => 'users.csv')
+ send_data(query_to_csv(@entries, @query, params), :type => 'text/csv; header=present', :filename => "#{filename_for_export(@query, 'users')}.csv")
end
format.api do
@offset, @limit = api_offset_and_limit