diff --git a/app/models/validations/household_validations.rb b/app/models/validations/household_validations.rb index 34f5f5862..21944be2a 100644 --- a/app/models/validations/household_validations.rb +++ b/app/models/validations/household_validations.rb @@ -87,6 +87,22 @@ module Validations::HouseholdValidations record.errors.add :sex1, I18n.t("validations.household.gender.male_refuge") end + # 3 Private Sector Tenancy + # 4 Tied housing or rented with job + # 7 Direct access hostel + # 9 Residential care home + # 10 Hospital + # 13 Children's home / Foster Care + # 14 Bed and breakfast + # 19 Rough Sleeping + # 21 Refuge + # 23 Mobile home / Caravan + # 24 Home Office Asylum Support + # 25 Other + # 26 Owner Occupation + # 27 Owner occupation (low-cost home ownership) + # 28 Living with Friends or Family + # 29 Prison / Approved Probation Hostel if record.is_internal_transfer? && [3, 4, 7, 9, 10, 13, 14, 19, 21, 23, 24, 25, 26, 27, 28, 29].include?(record.prevten) label = record.form.get_question("prevten", record).present? ? record.form.get_question("prevten", record).label_from_value(record.prevten) : "" record.errors.add :prevten, I18n.t("validations.household.prevten.internal_transfer", prevten: label) diff --git a/app/services/imports/case_logs_import_service.rb b/app/services/imports/case_logs_import_service.rb index ab0f41d71..99b9f9ee9 100644 --- a/app/services/imports/case_logs_import_service.rb +++ b/app/services/imports/case_logs_import_service.rb @@ -201,7 +201,7 @@ module Imports differences.push("#{key} #{value.inspect} #{case_log_value.inspect}") end end - @logger.warn "Differences found when saving log #{case_log.id}: #{differences}" unless differences.empty? + @logger.warn "Differences found when saving log #{case_log.old_id}: #{differences}" unless differences.empty? end def check_status_completed(case_log, previous_status)