From b68130c1d904513d7fafcec171183d92e258addf Mon Sep 17 00:00:00 2001 From: Rachael Booth Date: Fri, 9 Feb 2024 11:05:38 +0000 Subject: [PATCH] CLDC-3126: Remove unnecessary extra data protection validation from lettings bulk upload --- app/services/bulk_upload/lettings/year2024/row_parser.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/services/bulk_upload/lettings/year2024/row_parser.rb b/app/services/bulk_upload/lettings/year2024/row_parser.rb index 5f05b6e10..28cfc1ca8 100644 --- a/app/services/bulk_upload/lettings/year2024/row_parser.rb +++ b/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)