From 34e915876d7100c72669634c5ba53693c3810a30 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 18 Apr 2011 19:25:23 +0000 Subject: [PATCH] Skip events that don't fit into the selected time range --- calendar/inc/class.calendar_export_csv.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/calendar/inc/class.calendar_export_csv.inc.php b/calendar/inc/class.calendar_export_csv.inc.php index 848c3edc6e..eaeab55a99 100644 --- a/calendar/inc/class.calendar_export_csv.inc.php +++ b/calendar/inc/class.calendar_export_csv.inc.php @@ -65,6 +65,9 @@ class calendar_export_csv implements importexport_iface_export_plugin { // support other selectors atm. $record = new calendar_egw_record(); foreach ($events as $event) { + // Get rid of yearly recurring events that don't belong + if($event['start'] > $query['end'] || $event['end'] < $query['start']) continue; + // Add in participants if($options['mapping']['participants']) { $event['participants'] = implode(", ",$this->bo->participants($event,true));