CRM-18163, removed code that explicitly set org id using org name
[civicrm-core.git] / 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',