diff --git a/client/src/views/record/list.js b/client/src/views/record/list.js index 3ef8be09fb..e52fa20361 100644 --- a/client/src/views/record/list.js +++ b/client/src/views/record/list.js @@ -406,6 +406,8 @@ Espo.define('views/record/list', 'view', function (Dep) { selectAllResult: function () { this.allResultIsChecked = true; + this.hideActions(); + this.$el.find('input.record-checkbox').prop('checked', true).attr('disabled', 'disabled'); this.$el.find('input.select-all').prop('checked', true); @@ -926,14 +928,14 @@ Espo.define('views/record/list', 'view', function (Dep) { this.addMassAction('printPdf'); } - if (this.collection.url !== this.entityType) { - this.removeAllResultMassAction('massUpdate'); - this.removeAllResultMassAction('remove'); - this.removeAllResultMassAction('export'); - } - this.setupMassActionItems(); + if (this.collection.url !== this.entityType) { + Espo.Utils.clone(this.checkAllResultMassActionList).forEach(function (item) { + this.removeAllResultMassAction(item); + }, this); + } + if (this.selectable) { this.events['click .list a.link'] = function (e) { e.preventDefault();