From bc0e993afad84bd55292af5ee8a6028a07a2e719 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Tue, 18 Mar 2014 23:03:03 +0530 Subject: [PATCH] CRM-13981, Minor fix on contribution page ---------------------------------------- * CRM-13981: Migrate "In Honor of" to Soft Credits http://issues.civicrm.org/jira/browse/CRM-13981 --- CRM/Contribute/Form/ContributionBase.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/ContributionBase.php b/CRM/Contribute/Form/ContributionBase.php index 03e14eae2b..1236acb76d 100644 --- a/CRM/Contribute/Form/ContributionBase.php +++ b/CRM/Contribute/Form/ContributionBase.php @@ -217,7 +217,15 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form { $this->_userID = $session->get('userID'); //Check if honor block is enabled for current contribution - $this->_honor_block_is_active = (boolean) CRM_Core_DAO::getFieldValue('CRM_Core_DAO_UFJoin', $this->_id, 'is_active', 'entity_id'); + $ufJoinParams = array( + 'module' => 'soft_credit', + 'entity_table' => 'civicrm_contribution_page', + 'entity_id' => $this->_id, + ); + $ufJoin = new CRM_Core_DAO_UFJoin(); + $ufJoin->copyValues($ufJoinParams); + $ufJoin->find(TRUE); + $this->_honor_block_is_active = $ufJoin->is_active; $this->_contactID = $this->_membershipContactID = $this->getContactID(); $this->_mid = NULL; -- 2.25.1