summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-03-18 15:58:18 +0000
committerGo MAEDA <maeda@farend.jp>2021-03-18 15:58:18 +0000
commit280e95b825d9adbcdb3d400e7eb5397f62e881e9 (patch)
tree4540af5f67a7ebc3785155e473560cd818fe6789 /app/helpers
parent77e199e817d841c65bab8405056ad4b71c19062e (diff)
downloadredmine-280e95b825d9adbcdb3d400e7eb5397f62e881e9.tar.gz
redmine-280e95b825d9adbcdb3d400e7eb5397f62e881e9.zip
Allow selecting encoding when exporting permission reports as CSV (#13767).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@20824 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/roles_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/roles_helper.rb b/app/helpers/roles_helper.rb
index 6c84138c4..f7f62ef19 100644
--- a/app/helpers/roles_helper.rb
+++ b/app/helpers/roles_helper.rb
@@ -21,7 +21,7 @@ module RolesHelper
include ApplicationHelper
def permissions_to_csv(roles, permissions)
- Redmine::Export::CSV.generate do |csv|
+ Redmine::Export::CSV.generate(:encoding => params[:encoding]) do |csv|
# csv header fields
headers = [l(:field_cvs_module), l(:label_permissions)] + roles.collect(&:name)
csv << headers