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:
eb0a217
)
dev/core#3774 Ensure that if we are in live credit card mode that the receive date...
author
Seamus Lee
<seamuslee001@gmail.com>
Thu, 4 Aug 2022 01:10:54 +0000
(11:10 +1000)
committer
Seamus Lee
<seamuslee001@gmail.com>
Thu, 4 Aug 2022 01:10:54 +0000
(11:10 +1000)
CRM/Contribute/Form/Contribution.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Contribute/Form/Contribution.php
b/CRM/Contribute/Form/Contribution.php
index 07de9c64891bfebe64d596547a9809e56b125be5..b8ef62d7fcbf54c39c5e5eb84805068466a8a6f7 100644
(file)
--- a/
CRM/Contribute/Form/Contribution.php
+++ b/
CRM/Contribute/Form/Contribution.php
@@
-703,8
+703,8
@@
class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
}
}
- // If contribution is a template receive date is not required
- $receiveDateRequired = !$this->_values['is_template'];
+ // If contribution is a template receive date is not required
and if we are in a live credit card mode
+ $receiveDateRequired = !$this->_values['is_template']
&& !$this->_mode
;
// add various dates
$this->addField('receive_date', ['entity' => 'contribution'], $receiveDateRequired, FALSE);
$this->addField('receipt_date', ['entity' => 'contribution'], FALSE, FALSE);