summaryrefslogtreecommitdiffstats
path: root/app/helpers/timelog_helper.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-12-06 00:24:41 +0000
committerGo MAEDA <maeda@farend.jp>2019-12-06 00:24:41 +0000
commite675eaedab189b31b4aac0e83732f24ed954b69b (patch)
tree6a8ea1c7386eb169f2b1376eb3d712eee3e081bd /app/helpers/timelog_helper.rb
parente646f7e4564dea0971dcf16796507c120db8c406 (diff)
downloadredmine-e675eaedab189b31b4aac0e83732f24ed954b69b.tar.gz
redmine-e675eaedab189b31b4aac0e83732f24ed954b69b.zip
Fix that spent time report CSV shows translation missing text if custom fields are involved (#32500).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@19341 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/timelog_helper.rb')
-rw-r--r--app/helpers/timelog_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/timelog_helper.rb b/app/helpers/timelog_helper.rb
index 019b441a0..2c3e500a5 100644
--- a/app/helpers/timelog_helper.rb
+++ b/app/helpers/timelog_helper.rb
@@ -79,7 +79,7 @@ module TimelogHelper
def report_to_csv(report)
Redmine::Export::CSV.generate(:encoding => params[:encoding]) do |csv|
# Column headers
- headers = report.criteria.collect {|criteria| l(report.available_criteria[criteria][:label]) }
+ headers = report.criteria.collect {|criteria| l_or_humanize(report.available_criteria[criteria][:label]) }
headers += report.periods
headers << l(:label_total_time)
csv << headers