From 25e778a5f596e4084c51114bdbcb275f43f8869c Mon Sep 17 00:00:00 2001 From: Eileen Date: Fri, 3 Jan 2014 16:01:10 +1300 Subject: [PATCH] E Notice compliance on Pledge BAO for update actions (recent list updates) --- CRM/Pledge/BAO/Pledge.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CRM/Pledge/BAO/Pledge.php b/CRM/Pledge/BAO/Pledge.php index 191af3aaf6..eb7bcfef45 100644 --- a/CRM/Pledge/BAO/Pledge.php +++ b/CRM/Pledge/BAO/Pledge.php @@ -238,9 +238,8 @@ class CRM_Pledge_BAO_Pledge extends CRM_Pledge_DAO_Pledge { ); } - $config = CRM_Core_Config::singleton(); - $contributionTypes = CRM_Contribute_PseudoConstant::financialType(); - $title = CRM_Contact_BAO_Contact::displayName($pledge->contact_id) . ' - (' . ts('Pledged') . ' ' . CRM_Utils_Money::format($pledge->amount, $pledge->currency) . ' - ' . $contributionTypes[$pledge->financial_type_id] . ')'; + $contributionTypes = CRM_Contribute_PseudoConstant::financialType(); + $title = CRM_Contact_BAO_Contact::displayName($pledge->contact_id) . ' - (' . ts('Pledged') . ' ' . CRM_Utils_Money::format($pledge->amount, $pledge->currency) . ' - ' . CRM_Utils_Array::value($pledge->financial_type_id, $contributionTypes) . ')'; // add the recently created Pledge CRM_Utils_Recent::add($title, -- 2.25.1