diff --git a/CRM/Contribute/Form/Contribution.php b/CRM/Contribute/Form/Contribution.php index 25331e45dcb4..8e2744c3dcb1 100644 --- a/CRM/Contribute/Form/Contribution.php +++ b/CRM/Contribute/Form/Contribution.php @@ -701,6 +701,10 @@ public function buildQuickForm() { if ($this->_id) { $contributionStatus = CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_Contribution', $this->_id, 'contribution_status_id'); $name = CRM_Utils_Array::value($contributionStatus, $statusName); + + if ($name == 'Pending') { + $this->assign('isPending', TRUE); + } switch ($name) { case 'Completed': // [CRM-17498] Removing unsupported status change options. @@ -1515,8 +1519,6 @@ protected function submit($submittedValues, $action, $pledgePaymentID) { foreach (array( 'payment_instrument_id', 'check_number', - // ****** @Monish - is this suppose to be trxn_date!? - 'receipt_date', ) as $fieldName) { if (empty($submittedValues[$fieldName])) { $submittedValues[$fieldName] = CRM_Utils_Array::value($fieldName, $this->_values); diff --git a/templates/CRM/Contribute/Form/Contribution.tpl b/templates/CRM/Contribute/Form/Contribution.tpl index d56932aade35..32a817748569 100644 --- a/templates/CRM/Contribute/Form/Contribution.tpl +++ b/templates/CRM/Contribute/Form/Contribution.tpl @@ -184,12 +184,6 @@