set default value

This commit is contained in:
Pete Matsyburka committed 2025-08-23 20:16:14 +03:00
1 parent 4685bac4b3
commit 719c1786f1
6 files changed
+117 -37

No files matched your search

+1 -1
View File
@@ -337,7 +337,7 @@ module Submitters
end
def replace_default_variables(value, attrs, submission, with_time: false)
return value if value.in?([true, false]) || value.is_a?(Numeric)
return value if value.in?([true, false]) || value.is_a?(Numeric) || value.is_a?(Array)
return if value.blank?
value.to_s.gsub(VARIABLE_REGEXP) do |e|