Browse Source

Bugfix: use dynamic optional fields

CLDC-2068-request-and-validate-UPRN
Jack S 2 years ago
parent
commit
b7b89b3ff2
  1. 2
      app/controllers/form_controller.rb

2
app/controllers/form_controller.rb

@ -160,7 +160,7 @@ private
end
def question_is_required?(question)
@log.class::OPTIONAL_FIELDS.exclude?(question.id) && required_questions.include?(question.id)
@log.optional_fields.exclude?(question.id) && required_questions.include?(question.id)
end
def required_questions

Loading…
Cancel
Save