Browse Source

Only set managing organisation if not already set

pull/653/head
baarkerlounger 3 years ago
parent
commit
31edde1cee
  1. 2
      app/models/case_log.rb

2
app/models/case_log.rb

@ -528,7 +528,7 @@ private
if rsnvac.present? if rsnvac.present?
self.newprop = has_first_let_vacancy_reason? ? 1 : 2 self.newprop = has_first_let_vacancy_reason? ? 1 : 2
end end
self.managing_organisation_id = owning_organisation_id self.managing_organisation_id ||= owning_organisation_id
self.incref = 1 if net_income_refused? self.incref = 1 if net_income_refused?
self.renttype = RENT_TYPE_MAPPING[rent_type] self.renttype = RENT_TYPE_MAPPING[rent_type]
self.lettype = get_lettype self.lettype = get_lettype

Loading…
Cancel
Save