projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3e495c
)
dev/core#2251 provide default receive_date
author
eileen
<emcnaughton@wikimedia.org>
Sat, 2 Jan 2021 20:52:51 +0000
(09:52 +1300)
committer
eileen
<emcnaughton@wikimedia.org>
Sat, 2 Jan 2021 20:52:51 +0000
(09:52 +1300)
CRM/Event/Form/Participant.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Event/Form/Participant.php
b/CRM/Event/Form/Participant.php
index d3cb1cff30d032359ff82c0a5980650a25d3d51c..73c88cb5609f7e735597411750c9dec45dcb046f 100644
(file)
--- a/
CRM/Event/Form/Participant.php
+++ b/
CRM/Event/Form/Participant.php
@@
-1261,7
+1261,7
@@
class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment
$contributionParams['non_deductible_amount'] = 'null';
$contributionParams['receipt_date'] = !empty($params['send_receipt']) ? CRM_Utils_Array::value('receive_date', $params) : 'null';
$contributionParams['contact_id'] = $this->_contactID;
- $contributionParams['receive_date'] =
CRM_Utils_Array::value('receive_date', $params, 'null
');
+ $contributionParams['receive_date'] =
$params['receive_date'] ?? date('Y-m-d
');
$recordContribution = [
'financial_type_id',