From b757e4c339fab11008bc75dab6979d7e5e494408 Mon Sep 17 00:00:00 2001 From: David Date: Tue, 19 Oct 2021 13:07:34 +0100 Subject: [PATCH] (Admin Panel) Fix an issue where all TXT records from a given qname would be deleted --- management/templates/custom-dns.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/management/templates/custom-dns.html b/management/templates/custom-dns.html index 6f476e6..5c1f6a5 100644 --- a/management/templates/custom-dns.html +++ b/management/templates/custom-dns.html @@ -285,10 +285,12 @@ function do_set_custom_dns(qname, rtype, value, method) { ttl: $('#customdnsTtl').val() }; method = 'POST'; + } else { + value = { + value: value + } } - console.log(value) - api( "/dns/custom/" + qname + "/" + rtype, method,