add redacted param

This commit is contained in:
Pete Matsyburka
2024-04-10 19:56:35 +03:00
parent f67db9fe5f
commit 6666f39928
4 changed files with 4 additions and 2 deletions
@@ -119,6 +119,7 @@ module Submissions
field['title'] = attrs['title'] if attrs['title'].present?
field['description'] = attrs['description'] if attrs['description'].present?
field['readonly'] = attrs['readonly'] if attrs.key?('readonly')
field['redacted'] = attrs['redacted'] if attrs.key?('redacted')
field['required'] = attrs['required'] if attrs.key?('required')
if attrs.key?('default_value') && !field['type'].in?(%w[signature image initials file])