CRM-18149 Added extra condition for entity_table
authorEdsel <edsel.lopez@jmaconsulting.biz>
Thu, 3 Mar 2016 13:11:30 +0000 (18:41 +0530)
committerEdsel <edsel.lopez@jmaconsulting.biz>
Thu, 3 Mar 2016 13:11:30 +0000 (18:41 +0530)
----------------------------------------
* CRM-18149: Retrieval of On Behalf profiles for contributions from civicrm_uf_join needs to be more specifc
  https://issues.civicrm.org/jira/browse/CRM-18149

CRM/Contribute/Form/ContributionPage/Settings.php

index 4e7e883cc3dd724dcddd7c5c11baa6fa490e6559..6efc73568e1ae334193e39150a7ee365c0a4684f 100644 (file)
@@ -57,6 +57,7 @@ class CRM_Contribute_Form_ContributionPage_Settings extends CRM_Contribute_Form_
         $ufJoinDAO = new CRM_Core_DAO_UFJoin();
         $ufJoinDAO->module = $module;
         $ufJoinDAO->entity_id = $this->_id;
+        $ufJoinDAO->entity_table = 'civicrm_contribution_page';
         if ($ufJoinDAO->find(TRUE)) {
           $jsonData = CRM_Contribute_BAO_ContributionPage::formatModuleData($ufJoinDAO->module_data, TRUE, $module);
           if ($module == 'soft_credit') {