From 60c8ac0de12c986f49ba1152e1033cf56ef5db3e Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 21 Sep 2020 13:03:45 +0000 Subject: remove spaces inside {} of TimelogHelper git-svn-id: http://svn.redmine.org/redmine/trunk@20059 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/timelog_helper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/helpers/timelog_helper.rb') diff --git a/app/helpers/timelog_helper.rb b/app/helpers/timelog_helper.rb index 31b8705c0..1017e9ef3 100644 --- a/app/helpers/timelog_helper.rb +++ b/app/helpers/timelog_helper.rb @@ -38,7 +38,7 @@ module TimelogHelper else collection << [ "--- #{l(:actionview_instancetag_blank_option)} ---", '' ] unless activities.detect(&:is_default) end - activities.each { |a| collection << [a.name, a.id] } + activities.each {|a| collection << [a.name, a.id]} collection end @@ -50,7 +50,7 @@ module TimelogHelper def select_hours(data, criteria, value) if value.to_s.empty? - data.select {|row| row[criteria].blank? } + data.select {|row| row[criteria].blank?} else data.select {|row| row[criteria].to_s == value.to_s} end @@ -88,7 +88,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_or_humanize(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 -- cgit v1.2.3