Skip to content

Commit

Permalink
fixed old code
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed May 28, 2021
1 parent afd6882 commit 44c2c2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/admin/domain_versions/archive.haml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
- else
- 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
- contact = Contact.new(ver.object.to_h.merge(ver.object_changes.to_h&.slice(*valid_columns)))
- contact = Contact.new(ver.object.to_h.merge(ver.object_changes.to_h&.slice(*Domain&.column_name)))
= contact.try(:name)
= " ".html_safe
= "(#{t(:deleted)})"
Expand Down

0 comments on commit 44c2c2b

Please sign in to comment.