From 06d3d1202b541aefd44211ba92aa6c5e786ee772 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Sat, 18 Nov 2023 12:28:51 +0200 Subject: [PATCH] fix default form value --- lib/submitters/maybe_update_default_values.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/submitters/maybe_update_default_values.rb b/lib/submitters/maybe_update_default_values.rb index 477ca81b0..2a1464253 100644 --- a/lib/submitters/maybe_update_default_values.rb +++ b/lib/submitters/maybe_update_default_values.rb @@ -21,7 +21,7 @@ def call(submitter, current_user) default_value = get_default_value_for_field(field, user, submitter) - submitter.values[field['uuid']] ||= value if default_value.present? + submitter.values[field['uuid']] ||= default_value if default_value.present? end submitter.save!