Browse Source

[CLDC-1939] Only add error if attribute is present (#1272)

pull/1275/head
Jack 2 years ago committed by GitHub
parent
commit
7d554b284b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/controllers/form_controller.rb

2
app/controllers/form_controller.rb

@ -71,7 +71,7 @@ private
end end
if session["fields"] if session["fields"]
session["fields"].each do |field, value| 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 @log[field] = value
end end
end end

Loading…
Cancel
Save