Browse Source

Fix condition affects question (illness type)

pull/619/head
baarkerlounger 3 years ago
parent
commit
25fa0d4eff
  1. 4
      app/services/imports/case_logs_import_service.rb

4
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

Loading…
Cancel
Save