From b745bf72b23247f88784aa466faf563c62bcacf8 Mon Sep 17 00:00:00 2001 From: aurora-a-k-a-lightning Date: Tue, 26 Nov 2024 14:59:39 -0800 Subject: [PATCH] dbex/97956-separation-location-string: temporary - turn separation location code into string for saved claim --- .../v0/disability_compensation_forms_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/controllers/v0/disability_compensation_forms_controller.rb b/app/controllers/v0/disability_compensation_forms_controller.rb index 755d801f0f0..d02e25ed5dd 100644 --- a/app/controllers/v0/disability_compensation_forms_controller.rb +++ b/app/controllers/v0/disability_compensation_forms_controller.rb @@ -180,6 +180,10 @@ def missing_disabilities?(submission) # 11/18/2024 BRD EVSS -> Lighthouse migration caused separation location to turn into an integer, # while SavedClaim (vets-json-schema) is expecting a string def temp_separation_location_fix + separation_location = form_content['form526']['serviceInformation']['separationLocation'] + + return nil if separation_location.blank? + separation_location_code = form_content['form526']['serviceInformation']['separationLocation']['separationLocationCode'].to_s form_content['form526']['serviceInformation']['separationLocation']['separationLocationCode'] =