Consider event as all day only for date instances

issue8922
review282561002
This commit is contained in:
Cédric Krier committed 2019-12-28 17:52:30 +01:00
1 parent 3feb93e4af
commit bb476bcffd
1 file changed
+3 -4
+3 -4
View File
@@ -117,7 +117,6 @@
if (this.attributes.dtend) {
date_end = record.field_get_client(this.attributes.dtend);
}
var allDay = true;
var description = [];
for (var i = 1; i < this.fields.length; i++) {
description.push(
@@ -126,9 +125,9 @@
}
description = description.join('\n');
if (date_start) {
if (date_end && date_end.isDateTime) {
allDay = false;
} else if (date_end && !date_end.isSame(date_start) &&
var allDay = date_start.isDate &&
(!date_end || date_end.isDate);
if (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