From 25fa0d4eff46915a74cadf9c5ba04d8e56343789 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Wed, 4 May 2022 11:12:02 +0100 Subject: [PATCH] Fix condition affects question (illness type) --- app/services/imports/case_logs_import_service.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/imports/case_logs_import_service.rb b/app/services/imports/case_logs_import_service.rb index f04fb8cea..29cdd242e 100644 --- a/app/services/imports/case_logs_import_service.rb +++ b/app/services/imports/case_logs_import_service.rb @@ -459,9 +459,9 @@ module Imports def illness_type(xml_doc, index, illness) illness_type = string_or_nil(xml_doc, "Q10ib-#{index}") - if illness_type == "Yes" && illness == "Yes" + if illness_type == "Yes" && illness == 1 1 - elsif illness == "Yes" + elsif illness == 1 0 end end