From 8757a378bfc1bfdf4b19965c4c80168aa8f20ba0 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 16 Jan 2014 11:43:25 +1300 Subject: [PATCH] CRM-14080 default to now ---------------------------------------- * CRM-14080: Have noticed there is no default on received_date on contribution.create - should default to now http://issues.civicrm.org/jira/browse/CRM-14080 --- api/v3/Contribution.php | 1 + 1 file changed, 1 insertion(+) diff --git a/api/v3/Contribution.php b/api/v3/Contribution.php index 370f8135a7..63322f70e6 100644 --- a/api/v3/Contribution.php +++ b/api/v3/Contribution.php @@ -83,6 +83,7 @@ function _civicrm_api3_contribution_create_spec(&$params) { $params['contact_id']['api.required'] = 1; $params['total_amount']['api.required'] = 1; $params['payment_instrument_id']['api.aliases'] = array('payment_instrument'); + $params['receive_date']['api.default'] = 'now'; $params['payment_processor'] = array( 'name' => 'payment_processor', 'title' => 'Payment Processor ID', -- 2.25.1