1

This worked correctly in 4.6.8, but not in 4.7.0 or 4.7.1. This query returns no results:

$result = civicrm_api3('Contribution', 'get', array(
  'sequential' => 1,
  'receive_date' => array('BETWEEN' => array("2016-01-01", "2016-03-31")),
));

But this one does return contributions from 2016:

$result = civicrm_api3('Contribution', 'get', array(
  'sequential' => 1,
  'receive_date' => array('BETWEEN' => array("2015-12-31", "2016-03-31")),
));

As far as I can tell, any query for contributions in the same year returns no results. Is this a bug?

  • does the second one returns correctly all the contributions you expect? it does seems strange indeed – Xavier Feb 16 '16 at 6:05
  • Without doing an exhaustive comparison...yes, the second one seems to find all 100+ contributions correctly. – Norris Feb 16 '16 at 23:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.