Browse Source

CLDC-3126: Remove unnecessary extra data protection validation from lettings bulk upload

pull/2240/head
Rachael Booth 11 months ago committed by Rachael Booth
parent
commit
b68130c1d9
  1. 8
      app/services/bulk_upload/lettings/year2024/row_parser.rb

8
app/services/bulk_upload/lettings/year2024/row_parser.rb

@ -377,8 +377,6 @@ class BulkUpload::Lettings::Year2024::RowParser
validate :validate_created_by_exists, on: :after_log
validate :validate_created_by_related, on: :after_log
validate :validate_declaration_acceptance, on: :after_log
validate :validate_nulls, on: :after_log
validate :validate_uprn_exists_if_any_key_address_fields_are_blank, on: :after_log, unless: -> { supported_housing? }
@ -494,12 +492,6 @@ class BulkUpload::Lettings::Year2024::RowParser
private
def validate_declaration_acceptance
unless field_15 == 1
errors.add(:field_15, I18n.t("validations.declaration.missing"), category: :setup)
end
end
def validate_valid_radio_option
log.attributes.each do |question_id, _v|
question = log.form.get_question(question_id, log)

Loading…
Cancel
Save