EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
cleanup
Yuri Kuznetsovfa1bd30ac3de
diff --git a/client/src/views/role/record/edit.js b/client/src/views/role/record/edit.jsindex 552ed35405..857db04ba2 100644--- a/client/src/views/role/record/edit.js+++ b/client/src/views/role/record/edit.js@@ -39,40 +39,6 @@ class RoleEditRecordView extends EditRecordView {fetch() {const data = super.fetch();- data['data'] = {};-- const scopeList = this.getTableView().scopeList;- const actionList = this.getTableView().actionList;- const aclTypeMap = this.getTableView().aclTypeMap;-- for (const i in scopeList) {- const scope = scopeList[i];-- if (this.$el.find('select[name="' + scope + '"]').val() === 'not-set') {- continue;- }-- if (this.$el.find('select[name="' + scope + '"]').val() === 'disabled') {- data['data'][scope] = false;-- continue;- }-- let o = true;-- if (aclTypeMap[scope] !== 'boolean') {- o = {};-- for (const j in actionList) {- const action = actionList[j];-- o[action] = this.$el.find('select[name="' + scope + '-' + action + '"]').val();- }- }-- data['data'][scope] = o;- }-data['data'] = this.getTableView().fetchScopeData();data['fieldData'] = this.getTableView().fetchFieldData();diff --git a/client/src/views/role/record/table.js b/client/src/views/role/record/table.jsindex 0a940b9fc9..b8f5d9dae5 100644--- a/client/src/views/role/record/table.js+++ b/client/src/views/role/record/table.js@@ -90,7 +90,6 @@ class RoleRecordTableView extends View {scopeLevelMemory/**- * @private* @type {import('model').default}*/formModel@@ -710,7 +709,6 @@ class RoleRecordTableView extends View {}/**- * @private* @param {string} [onlyScope]* @return {Object.<string, Object.<string, string>|false|true>}*/@@ -763,7 +761,6 @@ class RoleRecordTableView extends View {}/**- * @private* @return {Object.<string, Object.<string, Record.<string, string>|false>>}*/fetchFieldData() {