Keeps search criteria fieldset closed when results found
authorNicol <vingle@users.noreply.github.com>
Fri, 22 Dec 2023 12:58:07 +0000 (13:58 +0100)
committerGitHub <noreply@github.com>
Fri, 22 Dec 2023 12:58:07 +0000 (13:58 +0100)
Fixes search regression introduced in #28421 and identified in #28661.

templates/CRM/Activity/Form/Search.tpl

index 018d24494efc3609eca33d4165d61f3b25290f59..2918a83a975ee42394f924466864128a0037800f 100644 (file)
@@ -9,7 +9,7 @@
 *}
 {* Search form and results for Activities *}
 <div class="crm-form-block crm-search-form-block">
-  <details class="crm-accordion-wrapper crm-advanced_search_form-accordion" open="">
+  <details class="crm-accordion-wrapper crm-advanced_search_form-accordion" {if !$rows}open=""{/if}">
     <summary class="crm-accordion-header crm-master-accordion-header">
       {ts}Edit Search Criteria{/ts}
     </summary>