From b571c3b867f3eff0296a26cff93c05c49987d5f2 Mon Sep 17 00:00:00 2001 From: Maxime Delorme Date: Wed, 17 Oct 2007 16:40:40 +1300 Subject: [PATCH] VTODO needs to consider a different field for a time-range query. --- inc/caldav-REPORT-calquery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/caldav-REPORT-calquery.php b/inc/caldav-REPORT-calquery.php index 32ef3388..75b051bb 100644 --- a/inc/caldav-REPORT-calquery.php +++ b/inc/caldav-REPORT-calquery.php @@ -115,7 +115,7 @@ function SqlFilterFragment( $filter, $components, $property = null, $parameter = /** * TODO: We should probably allow time range queries against other properties, since eventually some client may want to do this. */ - $start_column = 'dtend'; // The column we compare against the START attribute + $start_column = ($components[sizeof($components)-1] == 'VTODO' ? "due" : 'dtend'); // The column we compare against the START attribute $finish_column = 'dtstart'; // The column we compare against the END attribute $start = $v->GetAttribute("START"); $finish = $v->GetAttribute("END");