From ec44deceaad05e8cc311c50d63ed8b39ddebfbb9 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Tue, 6 Dec 2022 18:35:13 +0200 Subject: [PATCH] record handler in setupFinal --- client/src/views/detail.js | 8 ++++++-- client/src/views/edit.js | 4 ++++ client/src/views/list.js | 4 ++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/client/src/views/detail.js b/client/src/views/detail.js index f32f7f6c34..a5fed23d3a 100644 --- a/client/src/views/detail.js +++ b/client/src/views/detail.js @@ -155,11 +155,15 @@ define('views/detail', ['views/main'], function (Dep) { }); } - this.getHelper().processSetupHandlers(this, 'detail'); - this.initRedirect(); }, + setupFinal: function () { + Dep.prototype.setupFinal.call(this); + + this.getHelper().processSetupHandlers(this, 'detail'); + }, + /** * @private */ diff --git a/client/src/views/edit.js b/client/src/views/edit.js index 43b7a77e39..5c294eb689 100644 --- a/client/src/views/edit.js +++ b/client/src/views/edit.js @@ -100,6 +100,10 @@ define('views/edit', ['views/main'], function (Dep) { this.setupHeader(); this.setupRecord(); + }, + + setupFinal: function () { + Dep.prototype.setupFinal.call(this); this.getHelper().processSetupHandlers(this, 'edit'); }, diff --git a/client/src/views/list.js b/client/src/views/list.js index 3007c79e07..c2a0d9da19 100644 --- a/client/src/views/list.js +++ b/client/src/views/list.js @@ -239,6 +239,10 @@ function (Dep, /** typeof module:search-manager.Class */SearchManager) { if (this.options.params && this.options.params.fromAdmin) { this.keepCurrentRootUrl = true; } + }, + + setupFinal: function () { + Dep.prototype.setupFinal.call(this); this.getHelper().processSetupHandlers(this, 'list'); },