Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ready-for-core-team-review]CRM-19799, fixed contribution params to include line items #9580

Merged
merged 3 commits into from
Dec 29, 2016

Conversation

pradpnayak
Copy link
Contributor


@pradpnayak pradpnayak force-pushed the CRM-19799 branch 2 times, most recently from fa14e99 to 508db8e Compare December 26, 2016 23:38
@pradpnayak pradpnayak changed the title CRM-19799, fixed contribution params to include line items [ready-for-core-team-review]CRM-19799, fixed contribution params to include line items Dec 26, 2016
Copy link
Contributor

@jitendrapurohit jitendrapurohit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and confirmed that it fixes the line_item for priceset contributions stated in the issue. Just pinging @eileenmcnaughton if she's fine with the changes.

@eileenmcnaughton
Copy link
Contributor

Yay for the test!

I feel that we should be trying to push the elicitation of the line items back to the form layer. I believe the way in which the form object is passed around with variables somewhat randomly snatched from it is confusing.

So, I would prefer to see $paymentParams['line_item'] passed in - which would trigger

      if (isset($paymentParams['line_item'])) {
        // @todo make sure this is consisently set at this point.
        $contributionParams['line_item'] = $paymentParams['line_item'];
      }

----------------------------------------
* CRM-19799: LineItems incorrect at both Contribution Level and Financial Accounts Level
  https://issues.civicrm.org/jira/browse/CRM-19799
----------------------------------------
* CRM-19799: LineItems incorrect at both Contribution Level and Financial Accounts Level
  https://issues.civicrm.org/jira/browse/CRM-19799
----------------------------------------
* CRM-19799: LineItems incorrect at both Contribution Level and Financial Accounts Level
  https://issues.civicrm.org/jira/browse/CRM-19799
@pradpnayak
Copy link
Contributor Author

@eileenmcnaughton @jitendrapurohit @monishdeb
Have pushed the changes

Copy link
Contributor

@jitendrapurohit jitendrapurohit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also works after the latest changes. Thanks.

@monishdeb monishdeb merged commit 33297ee into civicrm:master Dec 29, 2016
@pradpnayak pradpnayak deleted the CRM-19799 branch February 22, 2017 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants