From 7a7cebe39e3635197ac9eb83eaa9c1c336b7947a Mon Sep 17 00:00:00 2001 From: Samuel Vanhove Date: Wed, 29 Nov 2017 08:57:12 -0500 Subject: [PATCH] CRM-21478 Using contribution status name instead of id --- templates/CRM/Contribute/Page/UserDashboard.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/CRM/Contribute/Page/UserDashboard.tpl b/templates/CRM/Contribute/Page/UserDashboard.tpl index 01aee8307b..aca4d26a45 100644 --- a/templates/CRM/Contribute/Page/UserDashboard.tpl +++ b/templates/CRM/Contribute/Page/UserDashboard.tpl @@ -65,7 +65,7 @@ - {if $row.contribution_status_id != 7 && $row.contribution_status_id != 3 } + {if $row.contribution_status_name != 'Refunded' && $row.contribution_status_name != 'Cancelled' } {ts}Print Invoice{/ts} {else} {ts}Print Invoice and Credit Note{/ts} @@ -74,7 +74,7 @@ {/if} {/if} - {if $defaultInvoicePage && $row.contribution_status_id == 2} + {if $defaultInvoicePage && $row.contribution_status_name == 'Pending' } {assign var='id' value=$row.contribution_id} {capture assign=payNowLink}{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$defaultInvoicePage`&ccid=`$id`"}{/capture} -- 2.25.1