Also added checking for group_by-defined labels to get table headers

for groupings right
pull/6827/head
Sebastian Schuster 12 years ago
parent 24b1bdab76
commit d64a5ac61f
  1. 3
      app/helpers/reporting_helper.rb

@ -26,6 +26,9 @@ module ReportingHelper
name = name.camelcase
if CostQuery::Filter.const_defined? name
CostQuery::Filter.const_get(name).label
elsif
CostQuery::GroupBy.const_defined? name
CostQuery::GroupBy.const_get(name).label
else
#note that using Issue.human_attribute_name relies on the attribute
#being an issue attribute or a general attribute for all models whicht might not

Loading…
Cancel
Save