diff --git a/lib/vmdb/global_methods.rb b/lib/vmdb/global_methods.rb index 956287b7428..b29d6d23b2d 100644 --- a/lib/vmdb/global_methods.rb +++ b/lib/vmdb/global_methods.rb @@ -73,16 +73,12 @@ def ui_lookup(options = {}) elsif options[:models] Dictionary.gettext(options[:models], :type => :model, :notfound => :titleize, :plural => true) elsif options[:ui_title] - ui_lookup_for_title(options[:ui_title]) + Dictionary.gettext(options[:ui_title], :type => :ui_title) else '' end end - def ui_lookup_for_title(text) - Dictionary.gettext(text, :type => :ui_title) - end - # Wrap a report html table body with html table tags and headers for the columns def report_build_html_table(report, table_body, breakable = true) html = ''