mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
set default value
This commit is contained in:
1 parent
4685bac4b3
commit
719c1786f1
6 files changed
+117
-37
No files matched your search
@@ -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|
|
||||
|
||||
Reference in new issue
Block a user