CRM-16708 - Fix Sched Reminder configure link from event dashboard.
authorDave Greenberg <dave@civicrm.org>
Thu, 27 Aug 2015 22:17:34 +0000 (15:17 -0700)
committerDave Greenberg <dave@civicrm.org>
Thu, 27 Aug 2015 22:17:34 +0000 (15:17 -0700)
----------------------------------------
* CRM-16708: Link from Event Info page "Configure" menu to Schedule Reminders is incorrect
  https://issues.civicrm.org/jira/browse/CRM-16708

templates/CRM/Event/Page/DashBoard.tpl

index 517b36b02461f73f75dcd9d0a92ceea4e642c51f..2f02cfcaf34b1634cf58f07f36c4806ff6e833b6 100644 (file)
                     {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}
-                      <li><a title="{$v.title}" class="action-item crm-hover-button no-popup {$status}"
-                             href="{crmURL p="`$v.url`" q="reset=1&action=update&id=`$id`"}">{$v.title}</a></li>
+                      {* Schedule Reminders requires a different query string. *}
+                      {if $v.url EQ 'civicrm/event/manage/reminder'}
+                        <li><a title="{$v.title}" class="action-item crm-hover-button no-popup {$status}"
+                            href="{crmURL p="`$v.url`" q="reset=1&action=browse&setTab=1&id=`$id`"}">{$v.title}</a></li>
+                      {else}
+                        <li><a title="{$v.title}" class="action-item crm-hover-button no-popup {$status}"
+                            href="{crmURL p="`$v.url`" q="reset=1&action=update&id=`$id`"}">{$v.title}</a></li>
+                      {/if}
                     {/foreach}
                   </ul>
                 </span>