add field preferences param

This commit is contained in:
Pete Matsyburka
2024-06-09 20:25:19 +03:00
parent c2ded81959
commit 5ae56bd50c
3 changed files with 4 additions and 2 deletions
@@ -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'] = {