Browse Source

update error message with something meaningful

pull/1091/head
Phil Lee 3 years ago
parent
commit
19a242cde6
  1. 2
      app/services/bulk_upload/lettings/row_parser.rb

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

@ -163,7 +163,7 @@ private
possible_answers = FormHandler.instance.current_lettings_form.questions.find { |q| q.id == attribute.to_s }.answer_options.keys possible_answers = FormHandler.instance.current_lettings_form.questions.find { |q| q.id == attribute.to_s }.answer_options.keys
unless possible_answers.include?(public_send(field)) unless possible_answers.include?(public_send(field))
errors.add(field, "foo") errors.add(field, "Value supplied is not one of the permitted values")
end end
end end
end end

Loading…
Cancel
Save