From 149b03d6fa43c0c9f0e6089a2b82a338dc9d1989 Mon Sep 17 00:00:00 2001 From: eileen Date: Sat, 9 Nov 2019 13:46:37 +1300 Subject: [PATCH] Remove obsolete warning The time has come to let this one go..... --- CRM/Contribute/BAO/Query.php | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/CRM/Contribute/BAO/Query.php b/CRM/Contribute/BAO/Query.php index ce8541ce28..89de344751 100644 --- a/CRM/Contribute/BAO/Query.php +++ b/CRM/Contribute/BAO/Query.php @@ -112,6 +112,9 @@ class CRM_Contribute_BAO_Query extends CRM_Core_BAO_Query { * Get where clause. * * @param CRM_Contact_BAO_Query $query + * + * @throws \CRM_Core_Exception + * @throws \CiviCRM_API3_Exception */ public static function where(&$query) { self::initializeAnySoftCreditClause($query); @@ -123,18 +126,6 @@ class CRM_Contribute_BAO_Query extends CRM_Core_BAO_Query { if ($query->_mode == CRM_Contact_BAO_Query::MODE_CONTACTS) { $query->_useDistinct = TRUE; } - // CRM-12065 - if ( - $query->_params[$id][0] == 'contribution_type_id' || - $query->_params[$id][0] == 'contribution_type' - ) { - CRM_Core_Session::setStatus( - ts('The contribution type criteria is now obsolete, please update your smart group'), - '', - 'alert' - ); - continue; - } self::whereClauseSingle($query->_params[$id], $query); } -- 2.25.1