projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix url support for receive_date_high & receive_date_low
[civicrm-core.git]
/
CRM
/
Contribute
/
Tokens.php
diff --git
a/CRM/Contribute/Tokens.php
b/CRM/Contribute/Tokens.php
index 5906f5e969eb8670daa6e7054688d5cd6f451394..6c97c765dfa8b41aea77247f91c608a5c3b02bf2 100644
(file)
--- a/
CRM/Contribute/Tokens.php
+++ b/
CRM/Contribute/Tokens.php
@@
-50,7
+50,7
@@
class CRM_Contribute_Tokens extends \Civi\Token\AbstractTokenSubscriber {
'trxn_id',
'invoice_id',
'currency',
'trxn_id',
'invoice_id',
'currency',
- 'cancel_date',
+ 'c
ontribution_c
ancel_date',
'receipt_date',
'thankyou_date',
'tax_amount',
'receipt_date',
'thankyou_date',
'tax_amount',
@@
-69,6
+69,7
@@
class CRM_Contribute_Tokens extends \Civi\Token\AbstractTokenSubscriber {
'source' => 'contribution_source',
'status' => 'contribution_status_id',
'type' => 'financial_type_id',
'source' => 'contribution_source',
'status' => 'contribution_status_id',
'type' => 'financial_type_id',
+ 'cancel_date' => 'contribution_cancel_date',
];
}
];
}
@@
-97,8
+98,7
@@
class CRM_Contribute_Tokens extends \Civi\Token\AbstractTokenSubscriber {
* @return bool
*/
public function checkActive(\Civi\Token\TokenProcessor $processor) {
* @return bool
*/
public function checkActive(\Civi\Token\TokenProcessor $processor) {
- return
- !empty($processor->context['actionMapping'])
+ return !empty($processor->context['actionMapping'])
&& $processor->context['actionMapping']->getEntity() === 'civicrm_contribution';
}
&& $processor->context['actionMapping']->getEntity() === 'civicrm_contribution';
}