Skip to content

EspoCRM – Open Source CRM Application

Ref

Yurii6d16e3bb62cd
diff --git a/client/src/helpers/action-item-setup.js b/client/src/helpers/action-item-setup.js
index 6d2e6b7b74..9c34f7168f 100644
--- a/client/src/helpers/action-item-setup.js
+++ b/client/src/helpers/action-item-setup.js
@@ -94,8 +94,8 @@ class ActionItemSetupHelper {
/** @type {({name?: string} & Record | string)[]} */
const actionDefsListOriginal = [
- ...this.metadata.get(['clientDefs', 'Global', type + 'ActionList']) || [],
- ...this.metadata.get(['clientDefs', scope, type + 'ActionList']) || [],
+ ...this.metadata.get(['clientDefs', 'Global', type]) || [],
+ ...this.metadata.get(['clientDefs', scope, type]) || [],
];
/** @type {({name?: string} & Object.<string, *>)[]} */
diff --git a/client/src/views/modals/detail.js b/client/src/views/modals/detail.js
index 7bcf8e681a..c8f200ec7a 100644
--- a/client/src/views/modals/detail.js
+++ b/client/src/views/modals/detail.js
@@ -290,7 +290,7 @@ class DetailModalView extends ModalView {
actionItemSetup.setup({
view: this,
- type: 'modalDetail',
+ type: 'modalDetailActionList',
waitFunc: promise => this.wait(promise),
addFunc: item => this.addDropdownItem(item),
showFunc: name => this.showActionItem(name),
diff --git a/client/src/views/modals/edit.js b/client/src/views/modals/edit.js
index e4f711b220..434e831d98 100644
--- a/client/src/views/modals/edit.js
+++ b/client/src/views/modals/edit.js
@@ -551,7 +551,7 @@ class EditModalView extends ModalView {
actionItemSetup.setup({
view: this,
- type: 'modalEdit',
+ type: 'modalEditActionList',
waitFunc: promise => this.wait(promise),
addFunc: item => this.addDropdownItem(item),
showFunc: name => this.showActionItem(name),
diff --git a/client/src/views/record/detail.ts b/client/src/views/record/detail.ts
index 1032bde773..b2eb905fa9 100644
--- a/client/src/views/record/detail.ts
+++ b/client/src/views/record/detail.ts
@@ -1032,7 +1032,7 @@ class DetailRecordView<S extends DetailRecordViewSchema = DetailRecordViewSchema
actionItemSetup.setup({
view: this,
- type: this.type,
+ type: 'detailActionList',
waitFunc: promise => this.wait(promise),
addFunc: item => this.addDropdownItem(item),
showFunc: name => this.showActionItem(name),
@@ -1054,7 +1054,7 @@ class DetailRecordView<S extends DetailRecordViewSchema = DetailRecordViewSchema
actionItemSetup.setup({
view: this,
- type: 'edit',
+ type: 'editActionList',
waitFunc: promise => this.wait(promise),
addFunc: item => {
if (this.type === this.TYPE_EDIT) {