From: yashodha Date: Thu, 11 Apr 2013 17:10:23 +0000 (+0530) Subject: CRM-12274 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=baf8a079a7ed86a35cc92c3931b1ccdd41f9a929;p=civicrm-core.git CRM-12274 --- diff --git a/CRM/Campaign/BAO/Survey.php b/CRM/Campaign/BAO/Survey.php index bfb6c2df57..e94fbbeb31 100644 --- a/CRM/Campaign/BAO/Survey.php +++ b/CRM/Campaign/BAO/Survey.php @@ -520,8 +520,8 @@ Group By contact.id"; $query = " SELECT activity.id, activity.status_id, - activityTarget.target_contact_id as voter_id, - activityAssignment.assignee_contact_id as interviewer_id + activityTarget.contact_id as voter_id, + activityAssignment.contact_id as interviewer_id FROM civicrm_activity activity INNER JOIN civicrm_activity_contact activityTarget ON ( activityTarget.activity_id = activity.id AND activityTarget.record_type = 'Target')