From da5d91d5838e99d87aeda30b0b588d21deb403ad Mon Sep 17 00:00:00 2001 From: "Matthew Wire (MJW Consulting)" Date: Tue, 20 Aug 2019 09:55:45 +0100 Subject: [PATCH] Fix wrong variable in check for profiles --- CRM/Contribute/BAO/ContributionPage.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CRM/Contribute/BAO/ContributionPage.php b/CRM/Contribute/BAO/ContributionPage.php index 164ab946ab..a108185d42 100644 --- a/CRM/Contribute/BAO/ContributionPage.php +++ b/CRM/Contribute/BAO/ContributionPage.php @@ -328,8 +328,7 @@ class CRM_Contribute_BAO_ContributionPage extends CRM_Contribute_DAO_Contributio if ($preID = CRM_Utils_Array::value('custom_pre_id', $values)) { if (!empty($values['related_contact'])) { $preProfileTypes = CRM_Core_BAO_UFGroup::profileGroups($preID); - //@todo - following line should not refer to undefined $postProfileTypes? figure out way to test - if (in_array('Individual', $preProfileTypes) || in_array('Contact', $postProfileTypes)) { + if (in_array('Individual', $preProfileTypes) || in_array('Contact', $preProfileTypes)) { //Take Individual contact ID $userID = CRM_Utils_Array::value('related_contact', $values); } -- 2.25.1