Registrar ident disabled #2618

This commit is contained in:
Priit Tark 2015-06-10 14:31:01 +03:00
parent 07334f9cf6
commit 3822cef0b6
2 changed files with 25 additions and 26 deletions

View file

@ -230,7 +230,7 @@ module Depp
def extension_xml
xml = { _anonymus: [] }
ident = ident_xml[:_anonymus].try(:first)
ident = ident_xml[:_anonymus].try(:first) if !persisted?
legal = legal_document_xml[:_anonymus].try(:first)
xml[:_anonymus] << ident if ident.present?
xml[:_anonymus] << legal if legal.present?