From 2a15a37115b3842f25145faf7cf555ffbf5a9787 Mon Sep 17 00:00:00 2001 From: CiviCRM Date: Mon, 22 Dec 2014 17:43:36 +0530 Subject: [PATCH] CRM-15744- fix wrong event link for pcp on dashboard --- CRM/PCP/BAO/PCP.php | 1 + templates/CRM/Contribute/Page/PcpUserDashboard.tpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/PCP/BAO/PCP.php b/CRM/PCP/BAO/PCP.php index 777a5395a3..9515a66526 100644 --- a/CRM/PCP/BAO/PCP.php +++ b/CRM/PCP/BAO/PCP.php @@ -220,6 +220,7 @@ ORDER BY target_entity_type, target_entity_id $pcpBlock[] = array( 'pageId' => $pcpBlockDao->target_entity_id, 'pageTitle' => $pageTitle, + 'component' => $pcpBlockDao->target_entity_type, 'action' => $action, ); } diff --git a/templates/CRM/Contribute/Page/PcpUserDashboard.tpl b/templates/CRM/Contribute/Page/PcpUserDashboard.tpl index 4048e4378c..a17a226ea3 100644 --- a/templates/CRM/Contribute/Page/PcpUserDashboard.tpl +++ b/templates/CRM/Contribute/Page/PcpUserDashboard.tpl @@ -77,7 +77,7 @@ {foreach from=$pcpBlock item=row} - {$row.pageTitle} + {if $row.component eq 'contribute'}{else}{/if}{$row.pageTitle} {if $row.end_date}{$row.end_date|truncate:10:''|crmDate}{else}({ts}ongoing{/ts}){/if} {$row.action|replace:'xx':$row.pageId} -- 2.25.1