EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
ref
Yuriia52b383ff48a
diff --git a/client/src/views/modals/edit.js b/client/src/views/modals/edit.jsindex b18dbfe9b3..98f4d4263b 100644--- a/client/src/views/modals/edit.js+++ b/client/src/views/modals/edit.js@@ -104,7 +104,7 @@ class EditModalView extends ModalView {this.actionSaveAndContinueEditing();},/** @this EditModalView */- 'Escape': function (e) {+ 'Escape': async function (e) {if (this.saveDisabled) {return;}@@ -120,13 +120,14 @@ class EditModalView extends ModalView {this.model.set(focusedFieldView.fetch(), {skipReRender: true});}- if (this.getRecordView().isChanged) {- this.confirm(this.translate('confirmLeaveOutMessage', 'messages'))- .then(() => this.actionClose());+ if (!this.getRecordView().isChanged) {+ this.actionClose();return;}+ await this.confirm(this.translate('confirmLeaveOutMessage', 'messages'));+this.actionClose();},/** @this EditModalView */