From 38e1cb31b41789c1b54a3a2a9fecba0fca62be0e Mon Sep 17 00:00:00 2001 From: Deepak Srivastava Date: Thu, 6 Mar 2014 19:32:06 +0530 Subject: [PATCH] make reverting from soft-credit search to contributions-only clean, based on queryparams - soft credits columns should disappear --- CRM/Contribute/BAO/Query.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CRM/Contribute/BAO/Query.php b/CRM/Contribute/BAO/Query.php index 252d53bdda..7c5ad15229 100644 --- a/CRM/Contribute/BAO/Query.php +++ b/CRM/Contribute/BAO/Query.php @@ -796,10 +796,9 @@ class CRM_Contribute_BAO_Query { if (empty($queryParams[$id][0])) { continue; } - if ($queryParams[$id][0] == 'contribution_or_softcredits' && - in_array($queryParams[$id][2], array("only_scredits", "both_related", "both"))) { - self::$_contribOrSoftCredit = $queryParams[$id][2]; - } + if ($queryParams[$id][0] == 'contribution_or_softcredits') { + self::$_contribOrSoftCredit = $queryParams[$id][2]; + } } } if (in_array(self::$_contribOrSoftCredit, -- 2.25.1