Skip to content

Commit

Permalink
CRM-19153 Fixed unit test
Browse files Browse the repository at this point in the history
----------------------------------------
* CRM-19153: Future pledge start date causes improper future pledge payment dates
  https://issues.civicrm.org/jira/browse/CRM-19153
  • Loading branch information
Edzelopez committed Sep 8, 2016
1 parent 4bc340a commit e9f772d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CRM/Contribute/Form/Contribution/Confirm.php
Original file line number Diff line number Diff line change
Expand Up @@ -1865,6 +1865,7 @@ public static function submit($params) {
$form->_fields['billing_last_name'] = 1;
// CRM-18854 - Set form values to allow pledge to be created for api test.
if (CRM_Utils_Array::value('pledge_block_id', $params)) {
$form->_values['pledge_id'] = CRM_Utils_Array::value('pledge_id', $params, NULL);
$form->_values['pledge_block_id'] = $params['pledge_block_id'];
$pledgeBlock = CRM_Pledge_BAO_PledgeBlock::getPledgeBlock($params['id']);
$form->_values['max_reminders'] = $pledgeBlock['max_reminders'];
Expand Down

0 comments on commit e9f772d

Please sign in to comment.