From 402ab8b03f3343cb1a9154a6a0485ccfbe0517ff Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 12 Feb 2019 09:16:22 +1300 Subject: [PATCH] Fix regression whereby making receive_date required breaks back office cc Regression from https://lab.civicrm.org/dev/core/issues/680 led to https://civicrm.stackexchange.com/questions/28410/unable-to-take-credit-card-payment-after-civi-update --- CRM/Contribute/Form/Contribution.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/Contribution.php b/CRM/Contribute/Form/Contribution.php index e9c86d36de57..ef49a71c9ef9 100644 --- a/CRM/Contribute/Form/Contribution.php +++ b/CRM/Contribute/Form/Contribution.php @@ -699,7 +699,7 @@ public function buildQuickForm() { } // add various dates - $this->addField('receive_date', array('entity' => 'contribution'), TRUE, FALSE); + $this->addField('receive_date', array('entity' => 'contribution'), !$this->_mode, FALSE); $this->addField('receipt_date', array('entity' => 'contribution'), FALSE, FALSE); $this->addField('cancel_date', array('entity' => 'contribution', 'label' => ts('Cancelled / Refunded Date')), FALSE, FALSE);