added fix

This commit is contained in:
Oleg Hasjanov 2021-05-28 11:06:48 +03:00
parent a87c7524ec
commit 739752ec59

View file

@ -67,7 +67,7 @@
- else - else
- contact = Contact.all_versions_for([domain.registrant_id], version.created_at).first - contact = Contact.all_versions_for([domain.registrant_id], version.created_at).first
- if contact.nil? && ver = Version::ContactVersion.where(item_id: domain.registrant_id).last - if contact.nil? && ver = Version::ContactVersion.where(item_id: domain.registrant_id).last
- contact = Contact.new(ver.object.to_h.merge(ver.object_changes.to_h.each_with_object({}) {|(k,v), o| o[k] = v.last })) - contact = Contact.new(ver.object.to_h.merge(ver.object_changes.to_h&.slice(*valid_columns)))
= contact.try(:name) = contact.try(:name)
= " ".html_safe = " ".html_safe
= "(#{t(:deleted)})" = "(#{t(:deleted)})"