From 008fe603269873a5cab146c514774c4fcbe18f21 Mon Sep 17 00:00:00 2001 From: aurora-a-k-a-lightning Date: Tue, 26 Nov 2024 20:39:05 -0800 Subject: [PATCH] dbex/97956-separation-location-string: enter flipper flag: disability_compensation_temp_separation_location_code_string --- app/controllers/v0/disability_compensation_forms_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/v0/disability_compensation_forms_controller.rb b/app/controllers/v0/disability_compensation_forms_controller.rb index f710f8fb2ce..c0bdaa6b2e5 100644 --- a/app/controllers/v0/disability_compensation_forms_controller.rb +++ b/app/controllers/v0/disability_compensation_forms_controller.rb @@ -181,7 +181,7 @@ 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 - if form_content.is_a?(Hash) && form_content.dig('form526').is_a?(Hash) + if form_content.is_a?(Hash) && form_content['form526'].is_a?(Hash) separation_location_code = form_content.dig('form526', 'serviceInformation', 'separationLocation') unless separation_location_code.nil? form_content['form526']['serviceInformation']['separationLocation']['separationLocationCode'] =