remove redundant where clause
authorDeepak Srivastava <deepak.srivastava.0303@gmail.com>
Tue, 29 Apr 2014 07:14:42 +0000 (12:44 +0530)
committerDeepak Srivastava <deepak.srivastava.0303@gmail.com>
Tue, 29 Apr 2014 07:14:42 +0000 (12:44 +0530)
CRM/Logging/ReportSummary.php

index 5be779ff7e7aaee358f2b16e10d3d8db0150b91e..130effa66359157e8b0e138c8a8d9c644c013966 100644 (file)
@@ -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')";
   }