Skip to content

EspoCRM – Open Source CRM Application

fix pagination lost after full edit view

Yuri Kuznetsov923bb27a93c9
diff --git a/client/src/views/record/detail.js b/client/src/views/record/detail.js
index 18eff6a4e1..042cd2a55e 100644
--- a/client/src/views/record/detail.js
+++ b/client/src/views/record/detail.js
@@ -646,6 +646,15 @@ class DetailRecordView extends BaseRecordView {
model: this.model.clone(),
};
+ if (this.model.collection) {
+ const index = this.model.collection.indexOf(this.model);
+
+ if (index > -1) {
+ options.model.collection = this.model.collection;
+ options.model.collection.models[index] = options.model;
+ }
+ }
+
if (this.options.rootUrl) {
options.rootUrl = this.options.rootUrl;
}