}
//fix for CRM-2062
- $now = date('YmdHis');
+ //fix for CRM-16317
+ $now = $form->_params['receive_date'] = date('YmdHis');
+ $form->assign('receive_date',
+ CRM_Utils_Date::mysqlToIso($form->_params['receive_date'])
+ );
$result = NULL;
if ($form->_contributeMode == 'notify' ||
$isPayLater
$form->_params['contributionTypeID'] = $contributionTypeId;
$form->_params['item_name'] = $form->_params['description'];
- $form->_params['receive_date'] = $now;
if ($contribution && $form->_values['is_recur'] &&
$contribution->contribution_recur_id
if ($result) {
$form->_params = array_merge($form->_params, $result);
}
- $form->_params['receive_date'] = $now;
$form->set('params', $form->_params);
$form->assign('trxn_id', CRM_Utils_Array::value('trxn_id', $result));
- $form->assign('receive_date',
- CRM_Utils_Date::mysqlToIso($form->_params['receive_date'])
- );
// result has all the stuff we need
// lets archive it to a financial transaction