Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.1.3
-
Fix Version/s: 4.2.0
-
Component/s: CiviMember
-
Labels:None
Description
If an initial membership is added offline and then renewed online, user doesn't get renew link in dashboard because CRM_Member_BAO_Member::getContributionPageID() returns NULL from the 1st row in membership_payment.
Fix query to only select contributions where contribution_page_id is NOT NULL and ORDER BY membership_payment DESC so we get the latest payment.