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