changeset d4b5cb8b86c1 in sao:5.4
details: https://hg.tryton.org/sao?cmd=changeset;node=d4b5cb8b86c1
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 42dced93e6e7 -r d4b5cb8b86c1 src/view/calendar.js
--- a/src/view/calendar.js      Thu Jan 23 15:58:36 2020 +0100
+++ b/src/view/calendar.js      Thu Jan 23 20:48:49 2020 +0100
@@ -126,7 +126,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

Reply via email to