From: Pradeep Nayak Date: Wed, 16 Mar 2016 21:22:30 +0000 (+0530) Subject: CRM-18163, fixed problem related to CRM-15182 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7028a38f658bd08cfdbaccfee9ff4227be0819f1;p=civicrm-core.git 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 --- 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',