Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-17194

"Contribution Repeat Report" doesn't set the correct date range

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.8
    • Fix Version/s: 4.6.9
    • Component/s: CiviReport
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      The Contribution Repeat Report sets the Receive Date type to CRM_Utils_Type::T_DATE. This causes CRM_Utils_Date::getFromTo to interpret a search such as "1/1/2015-1/31/2015" as "1/1/2015 00:00:00 to 1/31/2015 00:00:00". The correct interpretation is "1/1/2015 00:00:00 to 1/31/2015 23:59:59". In turn, this report misses donations on the last day of the receive_date range(s).

      Removing the "type" element from the array causes the date to be correctly interpreted as a datetime field rather than a date field.

        Attachments

          Activity

            People

            • Assignee:
              palantejon Jon K Goldberg
              Reporter:
              palantejon Jon K Goldberg
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: