(Admin Panel) Fix an issue where all TXT records from a given qname would be deleted

This commit is contained in:
David 2021-10-19 13:07:34 +01:00
parent 8a0805dae8
commit b757e4c339
No known key found for this signature in database
GPG key ID: 913FE0F2477D7D6B

View file

@ -285,10 +285,12 @@ function do_set_custom_dns(qname, rtype, value, method) {
ttl: $('#customdnsTtl').val() ttl: $('#customdnsTtl').val()
}; };
method = 'POST'; method = 'POST';
} else {
value = {
value: value
}
} }
console.log(value)
api( api(
"/dns/custom/" + qname + "/" + rtype, "/dns/custom/" + qname + "/" + rtype,
method, method,