Invert logic for accordion open
authorWilliam Mortada <williammortada@thirdsectordesign.org>
Fri, 26 Jan 2024 09:14:23 +0000 (09:14 +0000)
committerWilliam Mortada <williammortada@thirdsectordesign.org>
Fri, 26 Jan 2024 15:56:37 +0000 (15:56 +0000)
templates/CRM/Contact/Page/View/CustomDataView.tpl

index e3b17525165d2c4e9142d8538be5282ce1f5f664..48608878c832e156801353ea5ee61b7f2ee7ad86 100644 (file)
@@ -14,7 +14,7 @@
   {assign var="count" value=$customGroupCount%2}
   {if ($count eq $side) or $skipTitle}
     {foreach from=$customValues item=cd_edit key=cvID}
-      <details class="customFieldGroup crm-accordion-wrapper ui-corner-all {$cd_edit.name} crm-custom-set-block-{$customGroupId}" {if !empty($cd_edit.collapse_display)} open{/if}>
+      <details class="customFieldGroup crm-accordion-wrapper ui-corner-all {$cd_edit.name} crm-custom-set-block-{$customGroupId}" {if empty($cd_edit.collapse_display)} open{/if}>
         <summary class="crm-accordion-header crm-master-accordion-header">
           {$cd_edit.title}
         </summary>