summaryrefslogtreecommitdiffstats
path: root/app/helpers/issues_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/issues_helper.rb')
-rw-r--r--app/helpers/issues_helper.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index f88a61e21..2e45d2e97 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -160,12 +160,13 @@ module IssuesHelper
end
def render_custom_fields_rows(issue)
- return if issue.custom_field_values.empty?
+ values = issue.visible_custom_field_values
+ return if values.empty?
ordered_values = []
- half = (issue.custom_field_values.size / 2.0).ceil
+ half = (values.size / 2.0).ceil
half.times do |i|
- ordered_values << issue.custom_field_values[i]
- ordered_values << issue.custom_field_values[i + half]
+ ordered_values << values[i]
+ ordered_values << values[i + half]
end
s = "<tr>\n"
n = 0