From 96904d4d0def50fd5681c4991d7746f98e82e0ea Mon Sep 17 00:00:00 2001 From: atif-shaikh Date: Thu, 4 Sep 2014 18:18:24 +0530 Subject: [PATCH] CRM-15182 enhancement - on behalf of: preloaded org is not preserved https://issues.civicrm.org/jira/browse/CRM-15182 --- 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 45b6b878fd..0d3d55e0aa 100644 --- a/CRM/Contribute/Form/Contribution/Confirm.php +++ b/CRM/Contribute/Form/Contribution/Confirm.php @@ -1533,7 +1533,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr $isCurrentEmployer = FALSE; $dupeIDs = array(); $orgID = NULL; - if (!empty($behalfOrganization['organization_id']) && !empty($behalfOrganization['org_option'])) { + if (!empty($behalfOrganization['organization_id']) && empty($behalfOrganization['org_option'])) { $orgID = $behalfOrganization['organization_id']; unset($behalfOrganization['organization_id']); $isCurrentEmployer = TRUE; -- 2.25.1