Browse Source

[CLDC-1939] Only add error if attribute is present

pull/1272/head
Jack S 3 years ago
parent
commit
c6ec4c0503
  1. 2
      app/controllers/form_controller.rb

2
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

Loading…
Cancel
Save