action handler support not in data

This commit is contained in:
Yuri Kuznetsov
2023-01-05 10:08:12 +02:00
parent 80b9d0dc7b
commit cde59bce55
+8 -3
View File
@@ -85,6 +85,14 @@ define(() => {
item.html = this.language.translate(name, 'actions', scope);
}
item.data = item.data || {};
let handlerName = item.handler || item.data.handler;
if (handlerName && !item.data.handler) {
item.data.handler = handlerName;
}
addFunc(item);
if (!Espo.Utils.checkActionAvailability(this.viewHelper, item)) {
@@ -97,9 +105,6 @@ define(() => {
actionList.push(item);
let data = item.data || {};
let handlerName = item.handler || data.handler;
if (!handlerName) {
return;
}