diff --git a/app/controllers/admin/communication/extranets/contacts_controller.rb b/app/controllers/admin/communication/extranets/contacts_controller.rb index 9e4ac7565752ed482ba352fb558cd70fa1c86806..53b19b0f630f3e392565e50583550e2ca4e459c8 100644 --- a/app/controllers/admin/communication/extranets/contacts_controller.rb +++ b/app/controllers/admin/communication/extranets/contacts_controller.rb @@ -8,7 +8,7 @@ class Admin::Communication::Extranets::ContactsController < Admin::Communication @organizations = @organizations.page params[:organizations_page] } format.xlsx { - # could be 2 differents controllers in Contacts/People & Contacts#Organizations, each with an index export + # could be 2 differents controllers in Contacts/People & Contacts/Organizations, each with an index export @export = params['export'] filename = "#{@export}-#{Time.now.strftime("%Y%m%d%H%M%S")}.xlsx" response.headers['Content-Disposition'] = "attachment; filename=#{filename}"