-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
dev/core#812 - Fix null display of contribution row on contact summar… #13868
Conversation
(Standard links)
|
@jitendrapurohit that spun up fails- perhaps we can add a where instead? |
this should go a the rc when we get it figured out maybe |
@jitendrapurohit what about this instead - I'm not sure if that selector is the best place to add the extra criteria but it seems to work & potentially avoids changing a scary join lower down
|
61f8805
to
56f3196
Compare
Hmm the new test is failing now - also - perhaps the qill should also check for 0 since I can imagine if someone later wants to have a qill for 'contribution id = 89' it might be confusing why it's blocked |
The test which is failing is the same which is added in this PR. The problem was it directly used the BAO_Query object to generate the query. It is now modified as per the selector which should work fine in passing all the tests. Also, modified the qill condition to be more restrictive and ignore the display for only this case. |
56f3196
to
6280f5b
Compare
@jitendrapurohit looks good - last thing - I think this should be on the rc? |
Yes, I've confirmed that this also affects 5.12-rc. Have raised the PR here - #13881 @eileenmcnaughton |
ok - we can close this one in favour of that then I guess |
…y page
Overview
Null row is displayed on contact summary page if contact has 0 contribution.
Before
Screenshot from dmaster -
If any of the link is clicked on the row, it results into an error -
After
Fixed.
Technical Details
We removed the unnecessary financial type join from the contribution table in #13720
Before the above fix, the query included the financial type which unintentionally avoided the null row to be returned as output -
After the removal of financial type join, the query is -
As it is a left join and no other field, the contact null row gets returned and is displayed on the contribution tab. @eileenmcnaughton
Comments
Gitlab - https://lab.civicrm.org/dev/core/issues/812