EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
fix collection trigger sync
Yuri Kuznetsov84ba790ef961
diff --git a/client/src/views/record/detail.js b/client/src/views/record/detail.jsindex 65dbd4b8de..d76925e3f6 100644--- a/client/src/views/record/detail.js+++ b/client/src/views/record/detail.js@@ -1854,7 +1854,8 @@ class DetailRecordView extends BaseRecordView {if (collection) {this.listenTo(this.model, 'destroy', () => {collection.remove(this.model.id);- collection.trigger('sync', {});++ collection.trigger('sync', collection, {}, {});});if ('indexOfRecord' in this.options) {diff --git a/client/src/views/record/list.js b/client/src/views/record/list.jsindex 2eeb11b436..08a3ac499a 100644--- a/client/src/views/record/list.js+++ b/client/src/views/record/list.js@@ -2198,7 +2198,7 @@ class ListRecordView extends View {this.collection.total = collection.total;this.collection.lengthCorrection = collection.lengthCorrection;- this.collection.trigger('sync', o);+ this.collection.trigger('sync', c, r, o);});if (this.options.keepCurrentRootUrl) {