From: Edsel Date: Thu, 3 Mar 2016 13:11:30 +0000 (+0530) Subject: CRM-18149 Added extra condition for entity_table X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d36a6185d1f96566e6706738f694b4758df4f227;p=civicrm-core.git CRM-18149 Added extra condition for entity_table ---------------------------------------- * 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 --- diff --git a/CRM/Contribute/Form/ContributionPage/Settings.php b/CRM/Contribute/Form/ContributionPage/Settings.php index 4e7e883cc3..6efc73568e 100644 --- a/CRM/Contribute/Form/ContributionPage/Settings.php +++ b/CRM/Contribute/Form/ContributionPage/Settings.php @@ -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') {