'Find Respondents To Interview' and 'Find Respondents To Release' throws DB error
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Mon, 29 Jun 2015 09:57:18 +0000 (15:27 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Mon, 29 Jun 2015 09:57:18 +0000 (15:27 +0530)
CRM/Contribute/BAO/Query.php

index ecade8302a5ea1540eaac5bf317b26a1ac2610de..c42904f787d86fa41e6b386930c136d0fb42419d 100644 (file)
@@ -651,7 +651,10 @@ class CRM_Contribute_BAO_Query {
         break;
 
       case 'civicrm_campaign':
-        $from = " $side  JOIN civicrm_campaign ON civicrm_campaign.id = civicrm_contribution.campaign_id";
+        //CRM-16764 - get survey clause from campaign bao
+        if (!CRM_Campaign_BAO_Query::$_applySurveyClause) {
+          $from = " $side  JOIN civicrm_campaign ON civicrm_campaign.id = civicrm_contribution.campaign_id";
+        }
         break;
 
       case 'contribution_participant':