mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
fix invite by order
This commit is contained in:
1 parent
81eee56e1e
commit
67d59ff1ba
1 file changed
+2
@@ -115,6 +115,8 @@ module Submissions
|
||||
next if item['invite_by_uuid'].blank? && item['optional_invite_by_uuid'].blank?
|
||||
next if submission.template_submitters.any? { |e| e['uuid'] == item['uuid'] }
|
||||
|
||||
item = item.merge('order' => submitter_attr['order']) if submitter_attr && submitter_attr['order'].present?
|
||||
|
||||
if index.zero?
|
||||
submission.template_submitters.insert(1, item)
|
||||
elsif submission.template_submitters.size > index
|
||||
|
||||
Reference in new issue
Block a user