Skip to content

EspoCRM – Open Source CRM Application

ref

Yuri Kuznetsova38803389c65
diff --git a/client/modules/crm/src/views/admin/entity-manager/fields/status-list.js b/client/modules/crm/src/views/admin/entity-manager/fields/status-list.js
index 83b8246a37..03d69d9dc0 100644
--- a/client/modules/crm/src/views/admin/entity-manager/fields/status-list.js
+++ b/client/modules/crm/src/views/admin/entity-manager/fields/status-list.js
@@ -26,17 +26,16 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
-define('crm:views/admin/entity-manager/fields/status-list', ['views/fields/multi-enum'], function (Dep) {
+import MultiEnumFieldView from 'views/fields/multi-enum';
- return Dep.extend({
+export default class extends MultiEnumFieldView {
- setupOptions: function () {
- let entityType = this.model.get('name');
+ setupOptions() {
+ const entityType = this.model.get('name');
- this.params.options = Espo.Utils.clone(
- this.getMetadata().get(['entityDefs', entityType, 'fields', 'status', 'options'])) || [];
+ const options = this.getMetadata().get(['entityDefs', entityType, 'fields', 'status', 'options']) || [];
- this.params.translation = `${entityType}.options.status`;
- },
- });
-});
+ this.params.options = [...options];
+ this.params.translation = `${entityType}.options.status`;
+ }
+}