EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
fetch after create
Yuri Kuznetsov3fb75588a07a
diff --git a/application/Espo/Modules/Crm/Resources/layouts/DocumentFolder/detail.json b/application/Espo/Modules/Crm/Resources/layouts/DocumentFolder/detail.jsonindex 8bfde48a1b..2789e35b3e 100644--- a/application/Espo/Modules/Crm/Resources/layouts/DocumentFolder/detail.json+++ b/application/Espo/Modules/Crm/Resources/layouts/DocumentFolder/detail.json@@ -17,4 +17,4 @@]]}-]\ No newline at end of file+]diff --git a/application/Espo/Modules/Crm/Resources/layouts/DocumentFolder/detailSmall.json b/application/Espo/Modules/Crm/Resources/layouts/DocumentFolder/detailSmall.jsonindex fbffb06350..a5fbc57bb6 100644--- a/application/Espo/Modules/Crm/Resources/layouts/DocumentFolder/detailSmall.json+++ b/application/Espo/Modules/Crm/Resources/layouts/DocumentFolder/detailSmall.json@@ -14,4 +14,4 @@]]}-]\ No newline at end of file+]diff --git a/client/src/views/record/list-tree.js b/client/src/views/record/list-tree.jsindex baf85bfb27..f975e8422c 100644--- a/client/src/views/record/list-tree.js+++ b/client/src/views/record/list-tree.js@@ -261,10 +261,10 @@ class ListTreeRecordView extends ListRecordView {}, view => {view.render();- this.listenToOnce(view, 'after:save', model => {+ this.listenToOnce(view, 'after:save', /** import('model').default */model => {view.close();- const collection = /** @type module:collections/tree */ this.collection;+ const collection = /** @type import('collections/tree').default */ this.collection;model.set('childCollection', collection.createSeed());@@ -274,8 +274,7 @@ class ListTreeRecordView extends ListRecordView {while (1) {if (v.level) {v = v.getParentView().getParentView();- }- else {+ } else {break;}}@@ -285,11 +284,13 @@ class ListTreeRecordView extends ListRecordView {return;}- this.collection.push(model);+ this.collection.fetch();++ /*this.collection.push(model);this.buildRows(() => {this.render();- });+ });*/});});}