Mantus667 / EventCalendarBelle

EventCalendar package for Umbraco 7
14 stars 12 forks source link

Only events completely inside the user’s current calendar “window” are shown. #2

Closed DFKA closed 10 years ago

DFKA commented 10 years ago

Please refer to the following Post: http://our.umbraco.org/projects/backoffice-extensions/eventcalendar/support-umbraco-7/53781-Bug-Displaying-Events

The problem seems to be in the following line of code in EventCalendarBelle.Controller.ECApiController.GetNormalEvents:

foreach (var ne in normal_events.Where(x => x.start >= startDate && x.end <= endDate))

It will only get the events that are completely within the start and end-date of the current calendar “window”, and should properly be replaced with the following:

foreach (var ne in normal_events.Where(x => x.start <= endDate && x.end >= startDate))