From 38310a517373a5a34a03a2eec2cc68965c54955f Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Mon, 29 Jun 2015 15:27:18 +0530 Subject: [PATCH] 'Find Respondents To Interview' and 'Find Respondents To Release' throws DB error --- CRM/Contribute/BAO/Query.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Contribute/BAO/Query.php b/CRM/Contribute/BAO/Query.php index ecade8302a..c42904f787 100644 --- a/CRM/Contribute/BAO/Query.php +++ b/CRM/Contribute/BAO/Query.php @@ -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': -- 2.25.1