CRM-18163, removed code that explicitly set org id using org name
authorPradeep Nayak <pradpnayak@gmail.com>
Thu, 10 Mar 2016 19:59:27 +0000 (01:29 +0530)
committerPradeep Nayak <pradpnayak@gmail.com>
Thu, 10 Mar 2016 19:59:27 +0000 (01:29 +0530)
----------------------------------------
* CRM-18163: Unsupervised Organization Rule for On Behalf Of Contributions
  https://issues.civicrm.org/jira/browse/CRM-18163

CRM/Contribute/Form/Contribution/Confirm.php

index 40119a94694fd91d11026299b4132a8ee5c72105..062305e35b2e993ff5c97bbe22ec0b18bc970051 100644 (file)
@@ -223,9 +223,6 @@ 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'])) {
-      // CRM-15182
-      $this->_params['organization_id'] = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $this->_params['onbehalf']['organization_name'], 'id', 'display_name');
-
       $this->_params['organization_name'] = $this->_params['onbehalf']['organization_name'];
       $addressBlocks = array(
         'street_address',