CRM-12274
authoryashodha <yashodha.chaku@webaccess.co.in>
Thu, 11 Apr 2013 17:10:23 +0000 (22:40 +0530)
committeryashodha <yashodha.chaku@webaccess.co.in>
Thu, 11 Apr 2013 17:10:23 +0000 (22:40 +0530)
CRM/Campaign/BAO/Survey.php

index bfb6c2df57f2dc90ee1ce639e22c66f018534a48..e94fbbeb31528c4d0a392710c0acfac460df873d 100644 (file)
@@ -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')