diff --git a/app/controllers/form_controller.rb b/app/controllers/form_controller.rb index 24e3d1b32..0a2d1ad65 100644 --- a/app/controllers/form_controller.rb +++ b/app/controllers/form_controller.rb @@ -71,7 +71,7 @@ private end if session["fields"] session["fields"].each do |field, value| - if form.get_question(field, @log)&.type != "date" && @log.respond_to?(field) + if form.get_question(field, @log)&.type != "date" && @log.attributes.key?(field) @log[field] = value end end