Hack to limit contribution range. hack
authorDavid Thompson <davet@gnu.org>
Thu, 11 Dec 2014 19:48:09 +0000 (14:48 -0500)
committerDavid Thompson <davet@gnu.org>
Thu, 11 Dec 2014 19:48:09 +0000 (14:48 -0500)
CRM/Wci/BAO/ProgressBar.php

index 01fbf8d34db12d1d6b95fe97daf9631a3f395656..833cc2605301a5c138876ff7452dad0b675ec731 100644 (file)
@@ -70,7 +70,7 @@ class CRM_Wci_BAO_ProgressBar extends CRM_Wci_DAO_ProgressBar {
         CRM_Core_DAO::storeValues($daoPbf, $for_page[$daoPbf->id]);
         $px = $for_page[$daoPbf->id]['percentage'];
 
-        $query = "SELECT * FROM civicrm_contribution where contribution_page_id =" . $for_page[$daoPbf->id]['contribution_page_id'];
+        $query = "SELECT * FROM civicrm_contribution where receive_date >= '2014-11-15' AND contribution_page_id =" . $for_page[$daoPbf->id]['contribution_page_id'];
         $params = array();
 
         $daoCon = CRM_Core_DAO::executeQuery($query, $params, TRUE, 'CRM_Contribute_DAO_Contribution');