This commit is contained in:
Yuri Kuznetsov
2021-06-01 15:56:12 +03:00
parent d7641455d4
commit b8422e7299
+2 -7
View File
@@ -531,14 +531,9 @@ define('view-helper', ['lib!client/lib/purify.min.js'], function () {
processSetupHandlers: function (view, type, scope) {
scope = scope || view.scope;
if (!scope) {
console.error("No scope detected for view setup handler processing.");
let handlerList = this.metadata.get(['clientDefs', 'Global', 'viewSetupHandlers', type]) || [];
return;
}
let handlerList =
(this.metadata.get(['clientDefs', 'Global', 'viewSetupHandlers', type]) || [])
handlerList = handlerList
.concat(
this.metadata.get(['clientDefs', scope, 'viewSetupHandlers', type]) || []
);