From 573d14f85441fe1772d6478014febfd0b7dea153 Mon Sep 17 00:00:00 2001 From: yuri Date: Wed, 31 Oct 2018 13:04:11 +0200 Subject: [PATCH] fix panel actions --- client/src/views/record/panel-actions.js | 4 ++-- client/src/views/record/panels-container.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/views/record/panel-actions.js b/client/src/views/record/panel-actions.js index 3de66664a3..38d3daf02b 100644 --- a/client/src/views/record/panel-actions.js +++ b/client/src/views/record/panel-actions.js @@ -43,8 +43,8 @@ define('views/record/panel-actions', 'view', function (Dep) { }, setup: function () { - this.buttonList = this.options.defs.buttonList; - this.actionList = this.options.defs.actionList; + this.buttonList = this.options.defs.buttonList || []; + this.actionList = this.options.defs.actionList || []; }, getButtonList: function () { diff --git a/client/src/views/record/panels-container.js b/client/src/views/record/panels-container.js index 0945455d55..9837a165cc 100644 --- a/client/src/views/record/panels-container.js +++ b/client/src/views/record/panels-container.js @@ -80,6 +80,7 @@ define('views/record/panels-container', 'view', function (Dep) { }, applyAccessToActions: function (actionList) { + if (!actionList) return; actionList.forEach(function (item) { if (Espo.Utils.checkActionAccess(this.getAcl(), this.model, item, true)) { if (item.isHiddenByAcl) {