@ -230,7 +230,7 @@ private
condition_key = conditions.first[:key]
condition_value = conditions.first[:value]
if public_send("#{condition_key}_changed?") && condition_value == public_send(condition_key) && !public_send("#{dependent}_changed?")
self.layear = nil
self[dependent] = nil
end
@ -110,7 +110,7 @@ FactoryBot.define do
net_income_known { "Yes" }
property_owner_organisation { "Test" }
property_manager_organisation { "Test" }
renewal { 1 }
renewal { "No" }
rent_type { 1 }
intermediate_rent_product_name { 2 }
needstype { 1 }
@ -97,7 +97,7 @@
<property_owner_organisation>Test</property_owner_organisation>
<property_manager_organisation>Test</property_manager_organisation>
<sale_or_letting/>
<renewal>1</renewal>
<renewal>No</renewal>
<rent_type>1</rent_type>
<intermediate_rent_product_name>2</intermediate_rent_product_name>
<purchaser_code>798794</purchaser_code>