mirror of
https://github.com/internetee/registry.git
synced 2025-07-12 05:58:23 +02:00
Story#119627029 check shared contact
(cherry picked from commit 9f73211)
This commit is contained in:
parent
be75b79c85
commit
c35ed2f3c5
2 changed files with 26 additions and 15 deletions
|
@ -87,7 +87,7 @@ class LegalDocument < ActiveRecord::Base
|
|||
contact_ids = DomainVersion.where(item_id: orig_legal.documentable_id).distinct.
|
||||
pluck("object->>'registrant_id'", "object_changes->>'registrant_id'",
|
||||
"children->>'tech_contacts'", "children->>'admin_contacts'",
|
||||
"children->>'tech_contacts'", "children->>'admin_contacts'").flatten.uniq
|
||||
"tech_contact_ids", "admin_contact_ids").flatten.uniq
|
||||
contact_ids = contact_ids.map{|id|
|
||||
case id
|
||||
when Hash
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue