Skip to content

Commit

Permalink
core/issues/26 - On behalf form fails to create new organisation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jitendra Purohit committed Mar 20, 2018
1 parent f4b3565 commit f85a1a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CRM/Contribute/Form/Contribution/Confirm.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,9 @@ public function preProcess() {
}
// 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);
if (empty($this->_params['org_option']) && empty($this->_params['organization_id'])) {
$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',
Expand Down

0 comments on commit f85a1a7

Please sign in to comment.