From 6ccb7cd16c5fb8c434c9e40c0f9221803721bb7e Mon Sep 17 00:00:00 2001 From: frytimo Date: Wed, 29 Apr 2026 16:49:01 +0000 Subject: [PATCH] Fix - scope variable to function only (#7935) --- themes/default/template.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/default/template.php b/themes/default/template.php index f25c1185a..406fd26fa 100644 --- a/themes/default/template.php +++ b/themes/default/template.php @@ -1677,6 +1677,7 @@ {*//domain selector *} function search_domains(element_id) { var xhttp = new XMLHttpRequest(); + var obj, domain_uuid, domain_name, link_label; xhttp.onreadystatechange = function() { //if (this.readyState == 4 && this.status == 200) { // document.getElementById(element_id).innerHTML = this.responseText; @@ -1750,7 +1751,7 @@ } } }; - search = document.getElementById('domains_search'); + var 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+"&{$domain_json_token_name}={$domain_json_token_hash}", true);