Skip to content

Commit

Permalink
Merge pull request #995 from mzazrivec/pluralize_title_in_csv_txt_pdf…
Browse files Browse the repository at this point in the history
…_reports

Pluralize report title in txt/csv/pdf reports
  • Loading branch information
Dan Clarizio authored Apr 11, 2017
2 parents d7b78e2 + 7adfd8b commit f4b6884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller/report_downloads.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f4b6884

Please sign in to comment.