mirror of
https://github.com/espocrm/espocrm.git
synced 2026-03-03 00:27:01 +00:00
record dashlet layout field translaction fix
This commit is contained in:
@@ -108,8 +108,14 @@ class ExpandedLayoutDashletFieldView extends BaseFieldView {
|
||||
|
||||
this.addActionHandler('editItem', (event, target) => this.editItem(target.dataset.name));
|
||||
|
||||
this.targetEntityType = this.model.get('entityType') ||
|
||||
this.targetEntityType = this.model.attributes.entityType ??
|
||||
this.getMetadata().get(['dashlets', this.dataObject.dashletName, 'entityType']);
|
||||
|
||||
this.listenTo(this.model, 'change:entityType', () => {
|
||||
if (this.model.attributes.entityType) {
|
||||
this.targetEntityType = this.model.attributes.entityType;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user