From 7028a38f658bd08cfdbaccfee9ff4227be0819f1 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Thu, 17 Mar 2016 02:52:30 +0530 Subject: [PATCH] CRM-18163, fixed problem related to CRM-15182 ---------------------------------------- * CRM-18163: Unsupervised Organization Rule for On Behalf Of Contributions https://issues.civicrm.org/jira/browse/CRM-18163 * CRM-15182: on behalf of: preloaded org is not preserved https://issues.civicrm.org/jira/browse/CRM-15182 --- CRM/Contribute/Form/Contribution/Confirm.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Contribute/Form/Contribution/Confirm.php b/CRM/Contribute/Form/Contribution/Confirm.php index 062305e35b..914cbf1126 100644 --- a/CRM/Contribute/Form/Contribution/Confirm.php +++ b/CRM/Contribute/Form/Contribution/Confirm.php @@ -223,6 +223,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr } // if onbehalf-of-organization if (!empty($this->_values['onbehalf_profile_id']) && !empty($this->_params['onbehalf']['organization_name'])) { + $this->_params['organization_id'] = CRM_Utils_Array::value('onbehalfof_id', $this->_params); $this->_params['organization_name'] = $this->_params['onbehalf']['organization_name']; $addressBlocks = array( 'street_address', -- 2.25.1