From 7adfd8b9aeffa21c985a9d9f445c86bb5c73aade Mon Sep 17 00:00:00 2001 From: Milan Zazrivec Date: Tue, 11 Apr 2017 14:24:12 +0200 Subject: [PATCH] Pluralize report title in txt/csv/pdf reports https://bugzilla.redhat.com/show_bug.cgi?id=1440692 --- app/controllers/application_controller/report_downloads.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller/report_downloads.rb b/app/controllers/application_controller/report_downloads.rb index d02777369cb..180f7cbb93d 100644 --- a/app/controllers/application_controller/report_downloads.rb +++ b/app/controllers/application_controller/report_downloads.rb @@ -96,7 +96,7 @@ def download_data options = session[:paged_view_search_options].merge(:page => nil, :per_page => nil) # Get all pages @view.table, _attrs = @view.paged_view_search(options) # Get the records - @view.title = _(@view.title) + @view.title = _(@view.title.pluralize) @view.headers.map! { |header| _(header) } @filename = filename_timestamp(@view.title)