From b529e413b74e3e0f052dc130124253b8c352c2ae Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Thu, 9 Nov 2017 13:51:37 +0530 Subject: [PATCH] CRM-21362: followup PR which fixes duplicate mailing rows for each job --- CRM/Report/Form/Mailing/Summary.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CRM/Report/Form/Mailing/Summary.php b/CRM/Report/Form/Mailing/Summary.php index 91f97eb8cea6..6945bd214fc6 100644 --- a/CRM/Report/Form/Mailing/Summary.php +++ b/CRM/Report/Form/Mailing/Summary.php @@ -117,9 +117,11 @@ public function __construct() { 'fields' => array( 'start_date' => array( 'title' => ts('Start Date'), + 'dbAlias' => 'MIN(mailing_job_civireport.start_date)', ), 'end_date' => array( 'title' => ts('End Date'), + 'dbAlias' => 'MAX(mailing_job_civireport.end_date)', ), ), 'filters' => array(