From 34eea47c926d6bcb779f819bc782d013727812ad Mon Sep 17 00:00:00 2001 From: CiviCRM Date: Mon, 18 Aug 2014 09:39:11 +0530 Subject: [PATCH] CRM-15073 : fix overwrite of subtype for onbehalf org --- CRM/Contribute/Form/Contribution/Confirm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/Contribution/Confirm.php b/CRM/Contribute/Form/Contribution/Confirm.php index 85aa0167ff..81384a8de6 100644 --- a/CRM/Contribute/Form/Contribution/Confirm.php +++ b/CRM/Contribute/Form/Contribution/Confirm.php @@ -1657,7 +1657,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr // CRM-6243 says to pick the first org even if more than one match if (count($dupeIDs) >= 1) { - $behalfOrganization['contact_id'] = $dupeIDs[0]; + $behalfOrganization['contact_id'] = $orgID = $dupeIDs[0]; // don't allow name edit unset($behalfOrganization['organization_name']); } -- 2.25.1