* Calendar: Fix quick add -> edit would incorrectly set end date

This commit is contained in:
nathangray 2020-11-09 09:20:56 -07:00
parent f4dccd73d4
commit 7cf2db5e24
2 changed files with 2 additions and 2 deletions

View File

@ -1292,7 +1292,7 @@ var CalendarApp = /** @class */ (function (_super) {
var end = widget.getRoot().getDOMWidgetById('end');
var start_time = new Date(widget.getValue());
var end_time = new Date(end.getValue());
if (end_time <= start_time) {
if (end.getValue() && end_time <= start_time) {
start_time.setMinutes(start_time.getMinutes() + 1);
end.set_value(start_time);
}

View File

@ -1352,7 +1352,7 @@ class CalendarApp extends EgwApp
let end = <et2_date> widget.getRoot().getDOMWidgetById('end');
let start_time = new Date(widget.getValue());
let end_time = new Date(end.getValue());
if(end_time <= start_time)
if(end.getValue() && end_time <= start_time)
{
start_time.setMinutes(start_time.getMinutes() + 1);
end.set_value(start_time);