Browse Source

work out column for field for errors

pull/1417/head
Phil Lee 3 years ago
parent
commit
433c8f44ef
  1. 2
      app/services/bulk_upload/lettings/validator.rb

2
app/services/bulk_upload/lettings/validator.rb

@ -30,7 +30,7 @@ class BulkUpload::Lettings::Validator
property_ref: row_parser.field_100, property_ref: row_parser.field_100,
row:, row:,
cell: "#{cols[field_number_for_attribute(error.attribute) - col_offset + 1]}#{row}", cell: "#{cols[field_number_for_attribute(error.attribute) - col_offset + 1]}#{row}",
col: cols[field_number_for_attribute(error.attribute) - col_offset + 1], col: csv_parser.column_for_field(error.attribute.to_s),
category: error.options[:category], category: error.options[:category],
) )
end end

Loading…
Cancel
Save