From 1d1070ba13fe4c10aaa44735d42804f2e48d285e Mon Sep 17 00:00:00 2001 From: Rachael Booth Date: Thu, 23 Jan 2025 09:48:07 +0000 Subject: [PATCH] Revert "CLDC-3850: Clear postcode_known when clearing postcode_full (#2910)" (#2913) This reverts commit 7e35b4b563cb9a7d44815473ae707bee2d775220. --- app/models/log.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/models/log.rb b/app/models/log.rb index d55289997..66e996892 100644 --- a/app/models/log.rb +++ b/app/models/log.rb @@ -248,11 +248,6 @@ class Log < ApplicationRecord end def blank_compound_invalid_non_setup_fields! - if errors.attribute_names.include? :postcode_full - self.postcode_known = nil if lettings? - self.pcodenk = nil if sales? - end - self.ppcodenk = nil if errors.attribute_names.include? :ppostcode_full self.previous_la_known = nil if errors.attribute_names.include? :prevloc @@ -263,8 +258,6 @@ class Log < ApplicationRecord self.address_line2 = nil self.town_or_city = nil self.postcode_full = nil - self.postcode_known = nil if lettings? - self.pcodenk = nil if sales? self.county = nil process_postcode_changes! end