Enotice fixes
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 26 Sep 2021 22:09:19 +0000 (11:09 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 26 Sep 2021 22:10:16 +0000 (11:10 +1300)
templates/CRM/Event/Form/Selector.tpl
templates/CRM/Event/Page/DashBoard.tpl

index e0cdefac6e1364e9656089667d7910079dd63430..3505dc446ce1b708b781f111f06a68d9a6cb377e 100644 (file)
@@ -44,7 +44,7 @@
     {/if}
 
     <td class="crm-participant-event_title"><a href="{crmURL p='civicrm/event/info' q="id=`$row.event_id`&reset=1"}" title="{ts}View event info page{/ts}">{$row.event_title}</a>
-        {if $contactId}<br /><a href="{crmURL p='civicrm/event/search' q="reset=1&force=1&event=`$row.event_id`"}" title="{ts}List participants for this event (all statuses){/ts}">({ts}participants{/ts})</a>{/if}
+        {if !empty($contactId)}<br /><a href="{crmURL p='civicrm/event/search' q="reset=1&force=1&event=`$row.event_id`"}" title="{ts}List participants for this event (all statuses){/ts}">({ts}participants{/ts})</a>{/if}
     </td>
     {assign var="participant_id" value=$row.participant_id}
     {if $lineItems.$participant_id}
index d01250ee681b22c8fcb00e666ae0ec3a4e18b2d9..81091d6c59e98414ea1ab1dc61a2f75caf9860e6 100644 (file)
@@ -96,7 +96,7 @@
                   <ul class="panel" id="panel_info_{$id}">
                     {foreach from=$eventSummary.tab key=k item=v}
                       {assign var="fld" value=$v.field}
-                      {if NOT $values.$fld}{assign var="status" value="disabled"}{else}{assign var="status" value="enabled"}{/if}
+                      {if empty($values.$fld)}{assign var="status" value="disabled"}{else}{assign var="status" value="enabled"}{/if}
                       {* Schedule Reminders requires a different query string. *}
                       {if $v.url EQ 'civicrm/event/manage/reminder'}
                         <li><a title="{$v.title|escape}" class="action-item crm-hover-button no-popup {$status}"