-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
Fix retrieving contribution_status_id for manual payment processor #16018
Fix retrieving contribution_status_id for manual payment processor #16018
Conversation
(Standard links)
|
@mattwire test failure looks like it might relate but not 100% sure mate
|
@seamuslee001 Probably related failure yes, thanks :-( Any thoughts on this one @eileenmcnaughton |
@seamuslee001 @eileenmcnaughton This should just be a simple typo fix - if it passes could you check/merge? |
@mattwire same test failure has occurred as before |
@eileenmcnaughton I picked this out as an obvious typo in the manual payment processor rather than a real-world failure. However, fixing it seems to break tests and I can't see why (it's to do with the pay later flag). So I don't know if this is a test error or a problem with the manual processor. And I don't actually use the manual processor anywhere. Any thoughts? |
@mattwire i managed to get it to pass again, the issue is that i had to change https://github.com/civicrm/civicrm-core/blob/master/CRM/Contribute/BAO/Contribution/Utils.php#L183 I would note that sets this function to something other than FALSE https://github.com/civicrm/civicrm-core/blob/master/CRM/Core/Payment.php#L1727 |
fda3080
to
ac1493e
Compare
@seamuslee001 Think I finally got it! There was a later code comparison that made the same mistake and returned false - so false == false. Now Pending == Pending! |
I agree with this and as far as i can tell the only time that if was true was for manual processor and tested by the ispayLater test. |
Overview
I'm not sure if this line ever actually gets hit but if it does it won't work because you need to pass in
contribution_status_id
and notstatus_id
.Before
NULL contribution status ID would be retrieved.
After
Pending contribution status ID would be retrieved.
Technical Details
Pseudoconstant requires
contribution_status_id
notstatus_id
.Comments
Found while working on some payment related stuff!