Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Blocker
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.1.3
-
Fix Version/s: 4.3.0
-
Component/s: Core CiviCRM
-
Labels:None
Description
CRM_Contribute_DAO_Contribution and others define many date types as
CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
in my case 4+8=12.
However,
CRM_Utils_Type::CRM_Utils_Type, being for example called by CRM_Contact_BAO_Query::restWhere does not know about type 12.
This results in several problems for queries containing dates, for example
http://drupal.demo.civicrm.org/civicrm/ajax/rest?json=1&sequential=1&debug=1&&entity=Contribution&action=get&receive_date=2012-06-16
or
http://forum.civicrm.org/index.php?topic=24948.0
The attached patch seems to circumvent the issue, but I don't think it solves it.