From 345fd6d572ed4d8c1427e6d232cc63f949ae590f Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Mon, 14 Sep 2020 15:27:34 +0200 Subject: [PATCH] csv --- app/controllers/admin/p_customers_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/p_customers_controller.rb b/app/controllers/admin/p_customers_controller.rb index 1e47de4..d69a26d 100644 --- a/app/controllers/admin/p_customers_controller.rb +++ b/app/controllers/admin/p_customers_controller.rb @@ -435,7 +435,7 @@ class Admin::PCustomersController < ApplicationController @data_to_send = @csv - send_data "\uFEFF" + @data_to_send, :filename => "export-csv.csv" #, :type => 'text/csv; charset=iso-8859-1; header=present' + send_data "\uFEFF" + @data_to_send.to_s, :filename => "export-csv.csv", :type => :csv #, :type => 'text/csv; charset=iso-8859-1; header=present'