Browse Source

Hide change link for inferred or derived values not yet answered

pull/2836/head
Manny Dinssa 2 months ago
parent
commit
ec1fd1c9aa
  1. 2
      app/models/form/question.rb

2
app/models/form/question.rb

@ -143,7 +143,7 @@ class Form::Question
end
def displayed_as_answered?(log)
if is_derived_or_has_inferred_check_answers_value?(log)
if is_derived_or_has_inferred_check_answers_value?(log) && log[id].present?
true
elsif type == "checkbox"
answer_options.keys.any? { |key| value_is_yes?(log[key]) }

Loading…
Cancel
Save