From cf22cfe2e068a38a7e5c70175405813eca805f0c Mon Sep 17 00:00:00 2001 From: 3Dgoo Date: Tue, 22 Mar 2016 14:10:54 +1030 Subject: [PATCH] Fixing recurring event stray end date bug When viewing an instance of a recurring event the end date was incorrectly being displayed. I have updated the code to correctly set the end date for the Event CurrentDate function for these recurring date items. --- code/CalendarEvent.php | 1 + 1 file changed, 1 insertion(+) diff --git a/code/CalendarEvent.php b/code/CalendarEvent.php index f626a11..2872052 100755 --- a/code/CalendarEvent.php +++ b/code/CalendarEvent.php @@ -223,6 +223,7 @@ public function CurrentDate() { $datetime = $allDates->first(); if($datetime) { $datetime->StartDate = $date; + $datetime->EndDate = $date; return $datetime; } }