changeset 162f28743f65 in sao:5.0
details: https://hg.tryton.org/sao?cmd=changeset;node=162f28743f65
description:
Add one day to calendar's end date only when calendar is for allDay
issue9003
review276741002
(grafted from 50aa625342d085246ac3448b304ad2764962f747)
diffstat:
src/view/calendar.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 7a9906846318 -r 162f28743f65 src/view/calendar.js
--- a/src/view/calendar.js Mon Jan 20 11:10:51 2020 +0100
+++ b/src/view/calendar.js Thu Jan 23 20:48:49 2020 +0100
@@ -101,7 +101,7 @@
if (date_start) {
var allDay = date_start.isDate &&
(!date_end || date_end.isDate);
- if (date_end && !date_end.isSame(date_start) &&
+ if (allDay && date_end && !date_end.isSame(date_start) &&
this.screen.current_view.view_type == "calendar") {
// Add one day to allday event that last more than one day.
// http://github.com/fullcalendar/fullcalendar/issues/2909