summaryrefslogtreecommitdiffstats
path: root/app/helpers/timelog_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-29 22:01:40 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-29 22:01:40 +0000
commit79b12c73d9acd43f53918d23a9f3d94a516632b5 (patch)
treefd96e989ce48fdf294b9655be2acfdf62b704bd8 /app/helpers/timelog_helper.rb
parent0cd62a3c7776a311b0776899bf4734cd7f4e583a (diff)
downloadredmine-79b12c73d9acd43f53918d23a9f3d94a516632b5.tar.gz
redmine-79b12c73d9acd43f53918d23a9f3d94a516632b5.zip
Display of multi custom fields.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8726 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 e3c7615b2..e27425acb 100644
--- a/app/helpers/timelog_helper.rb
+++ b/app/helpers/timelog_helper.rb
@@ -118,7 +118,7 @@ module TimelogHelper
entry.hours.to_s.gsub('.', decimal_separator),
entry.comments
]
- fields += custom_fields.collect {|f| show_value(entry.custom_value_for(f)) }
+ fields += custom_fields.collect {|f| show_value(entry.custom_field_values.detect {|v| v.custom_field_id == f.id}) }
csv << fields.collect {|c| Redmine::CodesetUtil.from_utf8(
c.to_s,