From 4679518c19373b2bd4f1728dd744970549cb6a86 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Thu, 11 Aug 2016 11:46:57 +0530 Subject: [PATCH] CRM-19214 - Loop on parent row instead of first td element --- templates/CRM/Group/Form/Search.tpl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/CRM/Group/Form/Search.tpl b/templates/CRM/Group/Form/Search.tpl index db91747d96..85ff2bc8b0 100644 --- a/templates/CRM/Group/Form/Search.tpl +++ b/templates/CRM/Group/Form/Search.tpl @@ -142,8 +142,10 @@ //Reload table after draw $(settings.nTable).trigger('crmLoad'); if (parentsOnly) { - $('tbody tr.crm-group-parent td:first', settings.nTable).each( function() { - $(this).prepend('{/literal}{literal}').find('div').css({'display': 'inline'}); + $('tbody tr.crm-group-parent', settings.nTable).each( function() { + $(this).find('td:first') + .prepend('{/literal}{literal}') + .find('div').css({'display': 'inline'}); }); } } -- 2.25.1