QA fix for CRM-15694
authorRohan Katkar <rohan.katkar@webaccessglobal.com>
Fri, 19 Dec 2014 10:40:28 +0000 (16:10 +0530)
committerRohan Katkar <rohan.katkar@webaccessglobal.com>
Fri, 19 Dec 2014 10:40:28 +0000 (16:10 +0530)
CRM/Report/Form/Activity.php

index abb93b6daaa8e8f59ab6afe1d801eedcc10cfd7a..cfffbdf24c8890b813f7e3bed718e0cb58794acb 100644 (file)
@@ -905,7 +905,7 @@ GROUP BY civicrm_activity_id {$this->_having} {$this->_orderBy} {$this->_limit}"
       }
 
       $query = "select " . implode(", ", $ifnulls) .
-        ", count(*) as ct from civireport_activity_temp_target where civicrm_contact_contact_target_id <> '' group by " .
+        ", count(DISTINCT civicrm_activity_id) as ct from civireport_activity_temp_target group by " .
         implode(", ", $sectionAliases);
 
       // initialize array of total counts