Remove unnecessary contributeMode reference
authorEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 7 Sep 2023 23:01:01 +0000 (11:01 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 7 Sep 2023 23:01:01 +0000 (11:01 +1200)
If trxn_id is present, then show it.

The variable is always assigned in
https://github.com/civicrm/civicrm-core/blob/2ad38a735f7b26daf99d7b63eb413c6b69f780cb/CRM/Contribute/Form/Contribution/ThankYou.php#L212

So we don't need more (deprecated) conditions

templates/CRM/Contribute/Form/Contribution/ThankYou.tpl

index 0027c64cdf578183488d1c0f95d12b9da063140e..6ddd508dc25fb03adbda8c678b8504cabbe470cc 100644 (file)
         {if $receive_date}
           {ts}Date{/ts}: <strong>{$receive_date|crmDate}</strong><br />
         {/if}
-        {if $contributeMode ne 'notify' and $is_monetary and ! $is_pay_later and $trxn_id}
+        {if $trxn_id}
           {ts}Transaction #{/ts}: {$trxn_id}<br />
         {/if}
         {if $membership_trx_id}