From 37136fd2afa9bce329eb622a221a70ed2b6c2491 Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Thu, 3 Oct 2024 17:55:17 +0530 Subject: [PATCH] Fixed: search for helper tree not working for the tree with radio options --- admin/themes/default/template/helpers/tree/tree.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/themes/default/template/helpers/tree/tree.tpl b/admin/themes/default/template/helpers/tree/tree.tpl index 8c7234244..4d00912bd 100644 --- a/admin/themes/default/template/helpers/tree/tree.tpl +++ b/admin/themes/default/template/helpers/tree/tree.tpl @@ -64,7 +64,8 @@ {/if} {if isset($use_search) && $use_search == true} $("#{$id|escape:'html':'UTF-8'}-search").bind("typeahead:selected", function(obj, datum) { - $("#{$id|escape:'html':'UTF-8'}").find('[name="'+datum.input_name + '[]"]:input').each( + var suffix = '{if isset($use_checkbox) && $use_checkbox == true}[]{/if}'; + $("#{$id|escape:'html':'UTF-8'}").find('[name="'+datum.input_name + suffix + '"]:input').each( function() { if ($(this).val() == datum.value)