Skip to content

Commit

Permalink
Display better Tag with missing category in report editor
Browse files Browse the repository at this point in the history
  • Loading branch information
lpichler committed Sep 13, 2019
1 parent 0718bb6 commit e3874b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/report_controller/reports/editor.rb
Expand Up @@ -1399,7 +1399,7 @@ def set_form_vars
tag = nf.first.split(':')
if nf.first.include?("Managed :")
entry = MiqExpression.reporting_available_fields(@edit[:new][:model], @edit[:new][:perf_interval]).find { |a| a.last == nf.last }
nf[0] = entry ? entry.first : "#{tag} (Category not found)"
nf[0] = entry ? entry.first : "#{tag.last.strip} (Category not found)"
end
end

Expand Down

0 comments on commit e3874b1

Please sign in to comment.