Skip to content

Commit

Permalink
Merge pull request #24144 from seamuslee001/dev_core_3774
Browse files Browse the repository at this point in the history
dev/core#3774 Ensure that if we are in live credit card mode that the…
  • Loading branch information
seamuslee001 authored Aug 4, 2022
2 parents eb0a217 + 658b420 commit b34900e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Contribute/Form/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -703,8 +703,8 @@ public function buildQuickForm() {
}
}

// 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);
Expand Down

0 comments on commit b34900e

Please sign in to comment.