From 9393897f2ea32b30ac727f3ac6537ebdb924d44b Mon Sep 17 00:00:00 2001 From: yashodha Date: Mon, 5 Aug 2013 21:40:29 +0530 Subject: [PATCH] fixed activity query (CRM-13092) --- CRM/Activity/BAO/Query.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Activity/BAO/Query.php b/CRM/Activity/BAO/Query.php index 4d7c551a28..af0d43f2ba 100644 --- a/CRM/Activity/BAO/Query.php +++ b/CRM/Activity/BAO/Query.php @@ -372,7 +372,7 @@ class CRM_Activity_BAO_Query { $from = NULL; switch ($name) { case 'civicrm_activity': - //CRM-7480 we are going to civicrm_activitty table either + //CRM-7480 we are going to civicrm_activity table either //from civicrm_activity_target or civicrm_activity_assignment. //as component specific activities does not have entry in //activity target table so lets consider civicrm_activity_assignment. @@ -402,7 +402,7 @@ class CRM_Activity_BAO_Query { break; case 'source_contact': - $from = " $side JOIN civicrm_contact source_contact ON source_contact.id = civicrm_activity.source_contact_id"; + $from = " $side JOIN civicrm_contact source_contact ON source_contact.id = civicrm_activity_contact.contact_id"; break; } -- 2.25.1