EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
Fetch history after email reply
Yurii5000dcef3028
diff --git a/client/src/views/email/modals/detail.js b/client/src/views/email/modals/detail.jsindex 24810b5173..61534f2c30 100644--- a/client/src/views/email/modals/detail.js+++ b/client/src/views/email/modals/detail.js@@ -27,11 +27,11 @@************************************************************************/import DetailModalView from 'views/modals/detail';-import DetailView from 'views/email/detail';import EmailHelper from 'email-helper';+import MultiCollection from 'multi-collection';import Ui from 'ui';-export default class extends DetailModalView {+export default class EmailDetailModalView extends DetailModalView {setup() {super.setup();@@ -90,5 +90,14 @@ export default class extends DetailModalView {await view.render();Ui.notify();++ this.listenToOnce(view, 'after:send', () => {+ if (!(this.sourceModel?.collection instanceof MultiCollection)) {+ return;+ }++ // Fetch history.+ this.sourceModel.collection.fetch();+ });}}