From: Samuel Vanhove Date: Fri, 24 Nov 2017 17:07:20 +0000 (-0500) Subject: CRM-21478 Using contribution status id instead of label in if statement X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e03655af72a7c3b2035d23ed95879c552b3f0424;p=civicrm-core.git CRM-21478 Using contribution status id instead of label in if statement --- diff --git a/templates/CRM/Contribute/Page/UserDashboard.tpl b/templates/CRM/Contribute/Page/UserDashboard.tpl index eb768428c3..01aee8307b 100644 --- a/templates/CRM/Contribute/Page/UserDashboard.tpl +++ b/templates/CRM/Contribute/Page/UserDashboard.tpl @@ -65,7 +65,7 @@ - {if $row.contribution_status != 'Refunded' && $row.contribution_status != 'Cancelled' } + {if $row.contribution_status_id != 7 && $row.contribution_status_id != 3 } {ts}Print Invoice{/ts} {else} {ts}Print Invoice and Credit Note{/ts} @@ -74,7 +74,7 @@ {/if} {/if} - {if $defaultInvoicePage && $row.contribution_status == 'Pending (Pay Later)'} + {if $defaultInvoicePage && $row.contribution_status_id == 2} {assign var='id' value=$row.contribution_id} {capture assign=payNowLink}{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$defaultInvoicePage`&ccid=`$id`"}{/capture} @@ -161,4 +161,4 @@ {/if} {crmRegion name="crm-contribute-userdashboard-post"} -{/crmRegion} \ No newline at end of file +{/crmRegion}