We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df08d79 commit 42824d4Copy full SHA for 42824d4
1 file changed
app/controllers/concerns/importable.rb
@@ -25,7 +25,7 @@ module Importable
25
def import_csv
26
if params[:file].present?
27
data = File.read(params[:file].path, encoding: "BOM|UTF-8")
28
- csv = CSV.parse(data, headers: true, skip_blanks: true)
+ csv = CSV.parse(data, headers: true)
29
if csv.count.positive? && csv.first.headers.all? { |header| !header.nil? }
30
results = resource_model.import_csv(csv, current_organization.id)
31
if results[:errors].empty?
0 commit comments