From: CiviCRM Date: Mon, 18 Aug 2014 04:09:11 +0000 (+0530) Subject: CRM-15073 : fix overwrite of subtype for onbehalf org X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=34eea47c926d6bcb779f819bc782d013727812ad;p=civicrm-core.git CRM-15073 : fix overwrite of subtype for onbehalf org --- 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']); }