Fixed: search for helper tree not working for the tree with radio options

This commit is contained in:
vishalsingh.qlo325
2024-10-03 17:55:17 +05:30
parent 312318e498
commit 37136fd2af

View File

@@ -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)