Deprecate contribution_date as a parameter
authoreileen <emcnaughton@wikimedia.org>
Fri, 14 Jun 2019 15:46:23 +0000 (11:46 -0400)
committereileen <emcnaughton@wikimedia.org>
Fri, 14 Jun 2019 15:46:23 +0000 (11:46 -0400)
CRM/Contribute/BAO/Query.php

index 7c03293413f49b6d33503485f2d06b663687d895..19d79d9474ce2167382a0117e0d3c318cec4ebc5 100644 (file)
@@ -186,6 +186,7 @@ class CRM_Contribute_BAO_Query extends CRM_Core_BAO_Query {
       case 'contribution_date_low_time':
       case 'contribution_date_high':
       case 'contribution_date_high_time':
+        CRM_Core_Error::deprecatedFunctionWarning('search by receive_date');
         // process to / from date
         $query->dateQueryBuilder($values,
           'civicrm_contribution', 'contribution_date', 'receive_date', ts('Contribution Date')