Browse Source

feat: add error to field, not string

cldc-1888-bulk-upload-duplicate-log-validation
Sam Seed 2 years ago
parent
commit
1703999747
  1. 2
      app/services/bulk_upload/lettings/row_parser.rb

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

@ -301,7 +301,7 @@ private
duplicate_log_exists = LettingsLog.where(fields).present?
if duplicate_log_exists
errors.add('test', "test")
errors.add(:field_101, "test")
end
end

Loading…
Cancel
Save