From 57756eb2a8f041c0e4821bf39f33465d4c5f75c8 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 28 Nov 2022 21:07:18 -0700 Subject: [PATCH] Add domain json token to the template --- themes/default/template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/default/template.php b/themes/default/template.php index 1c573f3b51..5f51c3d7d4 100644 --- a/themes/default/template.php +++ b/themes/default/template.php @@ -1096,11 +1096,11 @@ search = document.getElementById('domains_search'); if (search.value) { //xhttp.open("GET", "/core/domains/domain_list.php?search="+search.value, true); - xhttp.open("GET", "/core/domains/domain_json.php?search="+search.value, true); + xhttp.open("GET", "/core/domains/domain_json.php?search="+search.value+"&{$domain_json_token_name}={$domain_json_token_hash}", true); } else { //xhttp.open("GET", "/core/domains/domain_list.php", true); - xhttp.open("GET", "/core/domains/domain_json.php", true); + xhttp.open("GET", "/core/domains/domain_json.php?{$domain_json_token_name}={$domain_json_token_hash}", true); } xhttp.send(); }