Browse Source

Fix condition affects question (illness type)

pull/542/head
baarkerlounger 3 years ago
parent
commit
891fcba9fe
  1. 4
      app/services/imports/case_logs_import_service.rb

4
app/services/imports/case_logs_import_service.rb

@ -458,9 +458,9 @@ module Imports
def illness_type(xml_doc, index, illness) def illness_type(xml_doc, index, illness)
illness_type = string_or_nil(xml_doc, "Q10ib-#{index}") illness_type = string_or_nil(xml_doc, "Q10ib-#{index}")
if illness_type == "Yes" && illness == "Yes" if illness_type == "Yes" && illness == 1
1 1
elsif illness == "Yes" elsif illness == 1
0 0
end end
end end

Loading…
Cancel
Save