diff --git a/app/models/depp/contact.rb b/app/models/depp/contact.rb index 3c1a62974..ee0057a72 100644 --- a/app/models/depp/contact.rb +++ b/app/models/depp/contact.rb @@ -229,7 +229,12 @@ module Depp end def extension_xml - ident_xml.merge(legal_document_xml) + xml = {_anonymus: []} + ident = ident_xml[:_anonymus].try(:first) + legal = legal_document_xml[:_anonymus].try(:first) + xml[:_anonymus] << ident if ident.present? + xml[:_anonymus] << legal if legal.present? + xml end def ident_xml