This commit is contained in:
Yuri Kuznetsov
2021-06-01 15:59:14 +03:00
parent b8422e7299
commit e4d5ffb281
+6 -4
View File
@@ -533,10 +533,12 @@ define('view-helper', ['lib!client/lib/purify.min.js'], function () {
let handlerList = this.metadata.get(['clientDefs', 'Global', 'viewSetupHandlers', type]) || [];
handlerList = handlerList
.concat(
this.metadata.get(['clientDefs', scope, 'viewSetupHandlers', type]) || []
);
if (scope) {
handlerList = handlerList
.concat(
this.metadata.get(['clientDefs', scope, 'viewSetupHandlers', type]) || []
);
}
if (handlerList.length === 0) {
return;