From 33f5d7658cdf0e36f0a72dcab1110712dff49944 Mon Sep 17 00:00:00 2001 From: eileen Date: Sat, 9 Nov 2019 14:12:20 +1300 Subject: [PATCH] Remove unhelpful alert from contribution search --- CRM/Contribute/BAO/Query.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/CRM/Contribute/BAO/Query.php b/CRM/Contribute/BAO/Query.php index 226544fc22..0d2462ae78 100644 --- a/CRM/Contribute/BAO/Query.php +++ b/CRM/Contribute/BAO/Query.php @@ -482,12 +482,6 @@ class CRM_Contribute_BAO_Query extends CRM_Core_BAO_Query { //all other elements are handle in this case $fldName = substr($name, 13); if (!isset($fields[$fldName])) { - // CRM-12597 - CRM_Core_Session::setStatus(ts( - 'We did not recognize the search field: %1. Please check and fix your contribution related smart groups.', - [1 => $fldName] - ) - ); return; } $whereTable = $fields[$fldName]; @@ -495,7 +489,7 @@ class CRM_Contribute_BAO_Query extends CRM_Core_BAO_Query { $value = trim($value); } - $dataType = "String"; + $dataType = 'String'; if (!empty($whereTable['type'])) { $dataType = CRM_Utils_Type::typeToString($whereTable['type']); } -- 2.25.1