From 5ca1cce14a00ad2af77a2cb5f4dec523c13fc386 Mon Sep 17 00:00:00 2001 From: Yurii Date: Thu, 12 Feb 2026 09:45:47 +0200 Subject: [PATCH] record dashlet layout field translaction fix --- .../src/views/dashlets/fields/records/expanded-layout.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/src/views/dashlets/fields/records/expanded-layout.js b/client/src/views/dashlets/fields/records/expanded-layout.js index 110a432721..efa04889ae 100644 --- a/client/src/views/dashlets/fields/records/expanded-layout.js +++ b/client/src/views/dashlets/fields/records/expanded-layout.js @@ -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; + } + }); } /**