EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
Kanban link click ref
Yuriidb4bac8a8303
diff --git a/client/src/views/record/kanban.js b/client/src/views/record/kanban.jsindex 69a31feb8d..eed459bedd 100644--- a/client/src/views/record/kanban.js+++ b/client/src/views/record/kanban.js@@ -465,10 +465,16 @@ class KanbanRecordView extends ListRecordView {* @type {string}*/processLinkClick(id) {- const model = this.collection.get(id);-const scope = this.getModelScope(id);+ const originalModel = this.collection.get(id);+ const groupCollection = originalModel.collection;+ const collection = groupCollection.clone({withModels: true});++ collection.data.select = Utils.clone(this.collection.data.select);++ const model = collection.get(id);+const options = {id: id,model: model,@@ -478,6 +484,22 @@ class KanbanRecordView extends ListRecordView {options.rootUrl = this.getRouter().getCurrentUrl();}+ this.listenTo(collection, 'model-sync', (/** Model */m, /** Record */o) => {+ if (o.action === 'destroy') {+ this.removeRecordFromList(m.id);+ }++ const model = this.collection.get(m.id);++ if (!model) {+ return;+ }++ if (o.action === 'set' || o.action === 'fetch' || o.action === 'save') {+ model.setMultiple(m.getClonedAttributes(), o);+ }+ });+this.getRouter().navigate(`#${scope}/view/${id}`, {trigger: false});this.getRouter().dispatch(scope, 'view', options);}@@ -1096,6 +1118,8 @@ class KanbanRecordView extends ListRecordView {this.subCollectionList.push(collection);this.collection.add(collection.models);+ collection.data.select = Utils.clone(this.collection.data.select);+const itemDataList = [];collection.models.forEach(model => {