CRM-15182 enhancement - on behalf of: preloaded org is not preserved
authoratif-shaikh <shaikh388@gmail.com>
Thu, 4 Sep 2014 12:48:24 +0000 (18:18 +0530)
committeratif-shaikh <shaikh388@gmail.com>
Thu, 4 Sep 2014 12:48:24 +0000 (18:18 +0530)
https://issues.civicrm.org/jira/browse/CRM-15182

CRM/Contribute/Form/Contribution/Confirm.php

index 45b6b878fd31fc8abeaf81e9f6a7e95479d6e9fd..0d3d55e0aad9962cc7f9d688ff1543ef7a0496c3 100644 (file)
@@ -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;