Details
-
Type:
Patch
-
Status: Done/Fixed
-
Priority:
Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.2.6, 4.2.15
-
Fix Version/s: 4.3.0
-
Component/s: CiviReport
-
Labels:None
-
Documentation Required?:None
-
Funding Source:Needs Funding
Description
To test with built-in reports, apply the attached file "time_filter_testing.patch"
Issue: Time was not displayed in the report "stats" summary
- Enter a date and time range in the "Contribution Details" report.
- Preview Report
- The filter summary will only display "Receive Date: Between July 1st, 2009 and July 1st, 2009" or whatever your dates were. Time is missing.
Part of this patch is suspect, because I ported from 4.1.1 – I removed these lines from dateClause, since T_DATE is the only filter type which has date range behavior, but it was stripping the time component from the WHERE clause.
> $from = ($type == CRM_Utils_Type::T_DATE)?substr($from,0,8 ):$from;
> $to = ($type == CRM_Utils_Type::T_DATE)?substr($to, 0, 8 ):$to;
This was also causing a single-day search to fail because the time range, which should have been 000000-235959, was instead 000000-000000