Skip to content

Commit

Permalink
fix(Tinebase/js): only close existing popup window
Browse files Browse the repository at this point in the history
  • Loading branch information
ccheng-dev committed Feb 20, 2024
1 parent 7c44ca9 commit f5c27b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tine20/Tinebase/js/widgets/dialog/EditDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,7 @@ Tine.widgets.dialog.EditDialog = Ext.extend(Ext.FormPanel, {

if (closeWindow) {
this.window.fireEvent('saveAndClose');
if (this.forceClose || !this.window.popup.opener) {
if (this.window?.popup && (this.forceClose || !this.window.popup.opener)) {
this.window.popup.close();
}
this.window.close(true);
Expand Down

0 comments on commit f5c27b4

Please sign in to comment.