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

CRM-19273 Fix in the usage of insertedLines and added test #9621

Closed
wants to merge 2 commits into from
Closed

CRM-19273 Fix in the usage of insertedLines and added test #9621

wants to merge 2 commits into from

Conversation

kainuk
Copy link
Contributor

@kainuk kainuk commented Jan 3, 2017

This fix solves the problem that I describe in my test scenario.
The base problem. When a line item is deselected it is set to zero. When it is selected again, there is no need toe create the line item (so in the code it is removed from the $insertLines). But the transactions details must be created as well, and that was skipped.

I added a test.


@civicrm-builder
Copy link

Can one of the admins verify this patch?

@colemanw
Copy link
Member

colemanw commented Jan 9, 2017

@civicrm-builder add to whitelist.

@JoeMurray
Copy link
Contributor

Code review only: I like the code on skimming it, especially the test. The changes at https://github.com/civicrm/civicrm-core/pull/9621/files#diff-d05dcb57339ac128d06193a57b9ca1bcR1908 and https://github.com/civicrm/civicrm-core/pull/9621/files#diff-d05dcb57339ac128d06193a57b9ca1bcR2033 smell very good.

If this passes some QA testing we should merge.

@eileenmcnaughton
Copy link
Contributor

@kainuk thank you for this. I believe the fix is correct, however the test needed changes due to upstream changes. I have made them in a replacement PR.
#9998

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