From ec1fd1c9aa7db852c0250600ce39335335344f65 Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Wed, 11 Dec 2024 15:05:04 +0000 Subject: [PATCH] Hide change link for inferred or derived values not yet answered --- app/models/form/question.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/form/question.rb b/app/models/form/question.rb index 117db3c47..7fcdbde26 100644 --- a/app/models/form/question.rb +++ b/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]) }