* Calendar: Fix quick add did not open conflict dialog

This commit is contained in:
nathangray 2020-09-15 10:43:08 -06:00
parent f38f61cf1b
commit a19e97df63
2 changed files with 2 additions and 2 deletions

View File

@ -1714,7 +1714,7 @@ var CalendarApp = /** @class */ (function (_super) {
this.dialog.destroy(); this.dialog.destroy();
delete app.calendar.quick_add; delete app.calendar.quick_add;
} }
else if (template) { else if (template || (template = etemplate2_1.etemplate2.getById("calendar-conflicts"))) {
// Open conflicts // Open conflicts
var data = jQuery.extend({ menuaction: 'calendar.calendar_uiforms.ajax_conflicts' }, template.widgetContainer.getArrayMgr('content').data, app.calendar.quick_add); var data = jQuery.extend({ menuaction: 'calendar.calendar_uiforms.ajax_conflicts' }, template.widgetContainer.getArrayMgr('content').data, app.calendar.quick_add);
egw.openPopup(egw.link('/index.php', data), 850, 300, 'conflicts', 'calendar'); egw.openPopup(egw.link('/index.php', data), 850, 300, 'conflicts', 'calendar');

View File

@ -1870,7 +1870,7 @@ class CalendarApp extends EgwApp
this.dialog.destroy(); this.dialog.destroy();
delete app.calendar.quick_add; delete app.calendar.quick_add;
} }
else if (template) else if (template || (template = etemplate2.getById("calendar-conflicts")))
{ {
// Open conflicts // Open conflicts
var data = jQuery.extend( var data = jQuery.extend(