CRM-13026 : search count fix
authorPratik Joshi <pratik.joshi@webaccess.co.in>
Fri, 23 Aug 2013 15:19:00 +0000 (20:49 +0530)
committerPratik Joshi <pratik.joshi@webaccess.co.in>
Fri, 23 Aug 2013 15:19:00 +0000 (20:49 +0530)
CRM/Mailing/Selector/Search.php

index f3d954d4c0a104d1f5d18ab8f449c09097442f20..a805364ce4adc5eb4ead873c0bea8a7733cd46fd 100644 (file)
@@ -178,6 +178,7 @@ class CRM_Mailing_Selector_Search extends CRM_Core_Selector_Base implements CRM_
       NULL, FALSE, FALSE,
       CRM_Contact_BAO_Query::MODE_MAILING
     );
+    $this->_query->_distinctComponentClause = " civicrm_mailing_event_queue.id ";
   }
   //end of constructor