set default value

This commit is contained in:
Pete Matsyburka
2025-08-23 20:11:10 +03:00
parent 4685bac4b3
commit 719c1786f1
6 changed files with 117 additions and 37 deletions
+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|