diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-09-21 13:03:45 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-09-21 13:03:45 +0000 |
commit | 60c8ac0de12c986f49ba1152e1033cf56ef5db3e (patch) | |
tree | 74fb9a3a99e0530cfc2888b5ef06d9b7d2bd9d6d | |
parent | 1eed339756316c71b938fcfdb62604efed598ec6 (diff) | |
download | redmine-60c8ac0de12c986f49ba1152e1033cf56ef5db3e.tar.gz redmine-60c8ac0de12c986f49ba1152e1033cf56ef5db3e.zip |
remove spaces inside {} of TimelogHelper
git-svn-id: http://svn.redmine.org/redmine/trunk@20059 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/helpers/timelog_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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 |