From a38bb4aa0773751fad7ee17a5cf9b5d7db74aa1f Mon Sep 17 00:00:00 2001 From: Priit Tark Date: Mon, 1 Jun 2015 15:19:11 +0300 Subject: [PATCH] Registrar: contact honors now both legal and ident #2606 --- app/models/depp/contact.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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