From 684a3cd49e5e429704cdd5acdc71b8336232d40c Mon Sep 17 00:00:00 2001 From: oemel09 Date: Tue, 31 Dec 2019 12:37:29 +0100 Subject: [PATCH] Fixes some events not being recognized as full day events --- CHANGELOG.md | 1 + modules/default/calendar/calendarfetcher.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 959b072e..7ffdfbb9 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - Module header now updates correctly, if a module need to dynamically show/hide its header based on a condition. - Fix handling of config.js for serverOnly mode commented out. - Fixed issue in calendar module where the debug script didn't work correctly with authentication +- Fixed issue that some full day events were not correctly recognized as such ## [2.9.0] - 2019-10-01 diff --git a/modules/default/calendar/calendarfetcher.js b/modules/default/calendar/calendarfetcher.js index 87fbcab9..d8972459 100644 --- a/modules/default/calendar/calendarfetcher.js +++ b/modules/default/calendar/calendarfetcher.js @@ -355,7 +355,7 @@ var CalendarFetcher = function(url, reloadInterval, excludedEvents, maximumEntri * return bool - The event is a fullday event. */ var isFullDayEvent = function(event) { - if (event.start.length === 8) { + if (event.start.length === 8 || event.start.dateOnly) { return true; }