CRM-17069: Search for Contribution with campaign causes fatal error
authoryashodha <yashodha.chaku@webaccessglobal.com>
Tue, 25 Aug 2015 05:58:47 +0000 (11:28 +0530)
committeryashodha <yashodha.chaku@webaccessglobal.com>
Tue, 25 Aug 2015 05:58:47 +0000 (11:28 +0530)
----------------------------------------
* CRM-17069: Search for Contribution with campaign  causes fatal error
  https://issues.civicrm.org/jira/browse/CRM-17069

CRM/Campaign/BAO/Query.php

index a6e7b2f090302fae6decf8cf64b146f3fdd6af56..cf7e04993e9b875bb4eed98a2582c3ad469b813c 100755 (executable)
@@ -603,13 +603,6 @@ INNER JOIN  civicrm_custom_group grp on fld.custom_group_id = grp.id
         $campaignIds[$campId] = $campId;
         $campaignTitles[$campId] = $allCampaigns[$campId];
       }
-      if (count($campaignIds) > 1) {
-        $op = 'IN';
-        $campaignIds = '(' . implode(',', $campaignIds) . ')';
-      }
-      else {
-        $campaignIds = reset($campaignIds);
-      }
     }
     else {
       $campaignIds = $campaign;