Story #109367694 - restore missing punctuation

This commit is contained in:
Matt Farnsworth 2015-12-04 14:30:04 +02:00
parent 098c40efc1
commit 238440de52

View file

@ -49,14 +49,14 @@ xml.epp_head do
xml.tag!('contact:clID', @contact.registrar.try(:code))
# EPP requires a creator ID, which should be registrar code if we have one
crID = contact.creator.try(:registrar)
crID = @contact.creator.try(:registrar)
crID = crID.code if crID.present? # Did creator return a kind of User that has a registrar?
crID = contact.creator unless crID.present? # Fallback if we failed, maybe this is a string only
crID = @contact.creator unless crID.present? # Fallback if we failed, maybe this is a string only
xml.tag!('contact:crID', crID)
xml.tag!('contact:crDate', @contact.created_at.try(:iso8601))
if @contact.updated_at != @contact.created_at
upID = contact.updator.try(:registrar)
upID = @contact.updator.try(:registrar)
upID = upID.code if upID.present? # Did updator return a kind of User that has a registrar?
xml.tag!('contact:upID', upID) if upID.present? # optional upID
xml.tag!('contact:upDate', @contact.updated_at.try(:iso8601))