Skip to content
Snippets Groups Projects
Commit 2a93bb5f authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

Merge pull request #489 from yashodha/CRM-12274

CRM-12274
parents 2fec1ddf 5161d8be
No related branches found
No related tags found
No related merge requests found
......@@ -574,11 +574,11 @@ INNER JOIN civicrm_activity_contact activityAssignment
}
if ($interviewerId) {
$where[] = "( activityAssignment.assignee_contact_id = $interviewerId )";
$where[] = "( activityAssignment.contact_id = $interviewerId )";
}
if (!empty($voterIds)) {
$where[] = "( activityTarget.target_contact_id IN ( " . implode(',', $voterIds) . " ) )";
$where[] = "( activityTarget.contact_id IN ( " . implode(',', $voterIds) . " ) )";
}
$whereClause = NULL;
......@@ -597,8 +597,8 @@ INNER JOIN civicrm_activity_contact activityAssignment
else {
$select = "
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,
activity.result as result,
activity.activity_date_time as activity_date_time,
contact_a.display_name as voter_name";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment