Skip to content

Commit

Permalink
dev/core#680 make receive_date required on backoffice contribution form
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Feb 5, 2019
1 parent bcc1969 commit 2b0fe7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Contribute/Form/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ public function buildQuickForm() {
}

// add various dates
$this->addField('receive_date', array('entity' => 'contribution'), FALSE, FALSE);
$this->addField('receive_date', array('entity' => 'contribution'), TRUE, FALSE);
$this->addField('receipt_date', array('entity' => 'contribution'), FALSE, FALSE);
$this->addField('cancel_date', array('entity' => 'contribution', 'label' => ts('Cancelled / Refunded Date')), FALSE, FALSE);

Expand Down
1 change: 1 addition & 0 deletions api/v3/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ function _civicrm_api3_contribution_create_spec(&$params) {
$params['total_amount']['api.required'] = 1;
$params['payment_instrument_id']['api.aliases'] = array('payment_instrument');
$params['receive_date']['api.default'] = 'now';
$params['receive_date']['api.required'] = TRUE;
$params['payment_processor'] = array(
'name' => 'payment_processor',
'title' => 'Payment Processor ID',
Expand Down

0 comments on commit 2b0fe7a

Please sign in to comment.