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

dev/core#1435 Fix lack of filtering in Contribution tab on Membership or Participant View #16013

Merged
merged 1 commit into from
Dec 3, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Fixes a recent regression (5.19 I think) where all the contact's contributions rather than just thre relevant ones show on the Participant or Membership view pages

Before

All of a contact's contributions show

After

Just the ones relevant to the membership

Technical Details

I weighed up some more complex fixes but given it's an rc (& possibly a 5.19 backport) this seems safe & simple

Comments

@seamuslee001 @aydun

@civibot
Copy link

civibot bot commented Dec 3, 2019

(Standard links)

@civibot civibot bot added the 5.20 label Dec 3, 2019
// an embedded block on ParticipantView or MembershipView.
$memberShipId = CRM_Utils_Request::retrieve('memberId', 'Positive', $this);
if (isset($memberShipId)) {
$this->_defaults['contribution_membership_id'] = $memberShipId;
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe fix the weird capitalisation of $memberShipId that was in the original? No boats here ...

Copy link
Contributor

@aydun aydun 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 fixes the reported problem. This seems a simple and effective fix.

@seamuslee001 seamuslee001 merged commit 2ae592c into civicrm:5.20 Dec 3, 2019
@seamuslee001
Copy link
Contributor

Merging as per @aydun 's review

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.

3 participants