add field preferences param

This commit is contained in:
Pete Matsyburka committed 2024-06-09 20:25:19 +03:00
1 parent c2ded81959
commit 5ae56bd50c
3 files changed
+4 -2

No files matched your search

@@ -130,6 +130,8 @@ module Submissions
end
end
field['preferences'] = (field['preferences'] || {}).merge(attrs['preferences']) if attrs['preferences'].present?
return field if attrs['validation_pattern'].blank?
field['validation'] = {