From 8c544cd2f223c8135e955ec8404735ef40c673ab Mon Sep 17 00:00:00 2001 From: Deepak Srivastava Date: Tue, 29 Apr 2014 12:44:42 +0530 Subject: [PATCH] remove redundant where clause --- CRM/Logging/ReportSummary.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Logging/ReportSummary.php b/CRM/Logging/ReportSummary.php index 5be779ff7e..130effa663 100644 --- a/CRM/Logging/ReportSummary.php +++ b/CRM/Logging/ReportSummary.php @@ -221,6 +221,9 @@ class CRM_Logging_ReportSummary extends CRM_Report_Form { } function where() { + // reset where clause as its called multiple times, every time insert sql is built. + $this->_whereClauses = array(); + parent::where(); $this->_where .= " AND (entity_log_civireport.log_action != 'Initialization')"; } -- 2.25.1