fix file prefill

This commit is contained in:
Pete Matsyburka
2024-09-05 15:03:43 +03:00
committed by Oleksandr Turchyn
parent 227a067c77
commit 90db64cc03
2 changed files with 7 additions and 5 deletions
+6 -4
View File
@@ -48,13 +48,15 @@ module Submissions
submitters.each do |submitter|
submitter.values.each_value do |value|
attachment = attachments_index[value]
Array.wrap(value).each do |v|
attachment = attachments_index[v]
next unless attachment
next unless attachment
attachment.record = submitter
attachment.record = submitter
attachment.save!
attachment.save!
end
end
end
end