mirror of
https://github.com/internetee/registry.git
synced 2025-06-09 22:24:47 +02:00
Merge pull request #1711 from internetee/1710-deleted-domain-history-fix
fix new version fields for deleted domains
This commit is contained in:
commit
fff3028a8d
2 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@
|
|||
- if version
|
||||
- attributes = only_present_fields(version, Domain)
|
||||
- domain = Domain.new(attributes)
|
||||
- attach_existing_fields(version, domain)
|
||||
- attach_existing_fields(version, domain) unless version.event == 'destroy'
|
||||
|
||||
%tr
|
||||
%td= link_to(domain.name, admin_domain_version_path(version.id))
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
- present_fields = only_present_fields(@version, Domain)
|
||||
- domain = Domain.new(present_fields)
|
||||
- attach_existing_fields(@version, domain)
|
||||
- attach_existing_fields(@version, domain) unless @version.event == 'destroy'
|
||||
|
||||
- if @version
|
||||
- children = HashWithIndifferentAccess.new(@version.children)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue