Skip to content

Commit

Permalink
Fixing recurring event stray end date bug
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
3Dgoo committed Mar 22, 2016
1 parent c1b5a84 commit cf22cfe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/CalendarEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ public function CurrentDate() {
$datetime = $allDates->first();
if($datetime) {
$datetime->StartDate = $date;
$datetime->EndDate = $date;
return $datetime;
}
}
Expand Down

0 comments on commit cf22cfe

Please sign in to comment.