From 6400fa5f4b4e68bda803db44bc8c6c58c6a2334f Mon Sep 17 00:00:00 2001 From: David Kennedy Date: Mon, 23 Oct 2023 20:58:09 -0400 Subject: [PATCH] fixed logic on save with no dnssec data records; fixed link on dns page --- src/registrar/templates/domain_dns.html | 2 +- src/registrar/views/domain.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/registrar/templates/domain_dns.html b/src/registrar/templates/domain_dns.html index b16c1cb8b..45529a19e 100644 --- a/src/registrar/templates/domain_dns.html +++ b/src/registrar/templates/domain_dns.html @@ -14,7 +14,7 @@ {% url 'domain-dns-nameservers' pk=domain.id as url %}

DNS name servers

- {% url 'domain-dnssec' pk=domain.id as url %} + {% url 'domain-dns-dnssec' pk=domain.id as url %}

DNSSEC

{% endblock %} {# domain_content #} diff --git a/src/registrar/views/domain.py b/src/registrar/views/domain.py index 1058c537a..90e915a60 100644 --- a/src/registrar/views/domain.py +++ b/src/registrar/views/domain.py @@ -382,7 +382,7 @@ class DomainDsDataView(DomainFormBaseView): # This is called when all DNSSEC data has been deleted and the # Save button is pressed - if len(formset) == 0 and formset.initial == [{}] and override == False: + if len(formset) == 0 and formset.initial != [{}] and override == False: # trigger the modal # get context data from super() rather than self # to preserve the context["form"]