From 398c1aae8453e616d3a6277d1c6d3a53cd147632 Mon Sep 17 00:00:00 2001 From: Nicol Date: Wed, 6 Dec 2023 17:36:52 +0000 Subject: [PATCH] Fixes UI regression in #28418 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Some advanced search accordion regions have a close button on the right – clicking this 'deactivites' the region from the search, and with the recent changes it also makes the expanded region hidden. This removes the line of JS responsible for that. --- templates/CRM/Contact/Form/Search/AdvancedCriteria.tpl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/CRM/Contact/Form/Search/AdvancedCriteria.tpl b/templates/CRM/Contact/Form/Search/AdvancedCriteria.tpl index a286c134c9..5158476f61 100644 --- a/templates/CRM/Contact/Form/Search/AdvancedCriteria.tpl +++ b/templates/CRM/Contact/Form/Search/AdvancedCriteria.tpl @@ -24,7 +24,6 @@ CRM.$(function($) { var header = $(this).parent(); header.next().html(''); header.removeClass('active'); - header.parent('.crm-ajax-accordion:not(.collapsed)').crmAccordionToggle(); // Reset results-display mode if it depends on this pane var mode = modes[$('#component_mode').val()] || null; if (mode && header.attr('id') == mode) { @@ -111,7 +110,7 @@ CRM.$(function($) { {foreach from=$allPanes key=paneName item=paneValue} -
+
{$paneName} -- 2.25.1