Skip to content

Commit

Permalink
Merge pull request ManageIQ#1099 from lpichler/add_section_to_selecte…
Browse files Browse the repository at this point in the history
…d_fields

Use to_human method for virtual custom attributes
  • Loading branch information
himdel authored Apr 25, 2017
2 parents 8ac1a79 + c445f79 commit 13d118e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/report_controller/reports/editor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1433,7 +1433,7 @@ def build_selected_fields(rpt)
rpt.col_order.each_with_index do |col, idx|
if col.starts_with?(CustomAttributeMixin::CUSTOM_ATTRIBUTES_PREFIX)
field_key = rpt.db + "-" + col
field_value =_("Labels: %{name}") % { :name => col.gsub(CustomAttributeMixin::CUSTOM_ATTRIBUTES_PREFIX, "") }
field_value = CustomAttributeMixin.to_human(col)
elsif !col.include?(".") # Main table field
field_key = rpt.db + "-" + col
field_value = friendly_model_name(rpt.db) +
Expand Down

0 comments on commit 13d118e

Please sign in to comment.