From 3b80b66d33b8615a8c8177382dc0f929a0936d80 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Tue, 9 Dec 2014 15:26:36 +0530 Subject: [PATCH] Additional fix for Cannot register lifetime membership for someone else [cid=0] if already have lifetime membership --- CRM/Contribute/Form/Contribution/Main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/Contribution/Main.php b/CRM/Contribute/Form/Contribution/Main.php index cdc7ea57e1..e09391e492 100644 --- a/CRM/Contribute/Form/Contribution/Main.php +++ b/CRM/Contribute/Form/Contribution/Main.php @@ -728,7 +728,7 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu $self->_useForMember ) ) { - $lifeMember = CRM_Member_BAO_Membership::getAllContactMembership($self->_userID, FALSE, TRUE); + $lifeMember = CRM_Member_BAO_Membership::getAllContactMembership($self->_membershipContactID, FALSE, TRUE); $membershipOrgDetails = CRM_Member_BAO_MembershipType::getMembershipTypeOrganization(); -- 2.25.1