Enotice fix
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 6 Aug 2021 06:56:39 +0000 (18:56 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 6 Aug 2021 06:56:39 +0000 (18:56 +1200)
This one is a bit of a brain twister but I'm pretty sure the re-ordered IF has the
same result - but one less enotice

templates/CRM/Contact/Form/Search/Advanced.tpl

index b8b9749a1f3b2c9f3895363ab390f31b306d4592..81f7cce2761a73122666633eae37ff0d491d9dab 100644 (file)
 
   <div class="crm-accordion-wrapper crm-advanced_search_form-accordion {if !empty($ssID) or $rows}collapsed{/if}">
     <div class="crm-accordion-header crm-master-accordion-header">
-      {if !empty($ssID) or $rows}
-        {if $savedSearch}
-          {ts 1=$savedSearch.name}Edit %1 Smart Group Criteria{/ts}
-        {else}
-          {ts}Edit Search Criteria{/ts}
-        {/if}
+      {if !empty($savedSearch)}
+        {ts 1=$savedSearch.name}Edit %1 Smart Group Criteria{/ts}
+      {elseif !empty($ssID) or $rows}
+        {ts}Edit Search Criteria{/ts}
       {else}
-        {if $savedSearch}
-          {ts 1=$savedSearch.name}Edit %1 Smart Group Criteria{/ts}
-        {else}
-          {ts}Search Criteria{/ts}
-        {/if}
+        {ts}Search Criteria{/ts}
       {/if}
       {help id='id-advanced-intro'}
     </div>