From 1df75fcecea6d1323f1ce8c70b337e53f39ef940 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Sat, 15 Nov 2025 13:18:31 +0200 Subject: [PATCH 1/2] currencyAttribute prop --- client/src/views/fields/currency.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/client/src/views/fields/currency.js b/client/src/views/fields/currency.js index 3965ed101d..b451904238 100644 --- a/client/src/views/fields/currency.js +++ b/client/src/views/fields/currency.js @@ -100,6 +100,13 @@ class CurrencyFieldView extends FloatFieldView { 'range', ] + /** + * @protected + * @type {string} + * @since 9.2.6 + */ + currencyAttribute + /** @inheritDoc */ data() { const currencyValue = this.model.get(this.currencyFieldName) || @@ -123,7 +130,7 @@ class CurrencyFieldView extends FloatFieldView { setup() { super.setup(); - this.currencyFieldName = this.name + 'Currency'; + this.currencyFieldName = this.currencyAttribute ?? this.name + 'Currency'; this.defaultCurrency = this.getConfig().get('defaultCurrency'); this.currencyList = this.getConfig().get('currencyList') || [this.defaultCurrency]; this.decimalPlaces = this.getConfig().get('currencyDecimalPlaces'); From 83439e53843f30785fa23a830269cf5ed92206ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Usame=20Be=C5=9Fir?= Date: Mon, 17 Nov 2025 13:06:19 +0300 Subject: [PATCH 2/2] fix missing value of entityType variable (#3523) --- client/src/views/modals/related-list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/views/modals/related-list.js b/client/src/views/modals/related-list.js index e965e25757..1f6e8e891f 100644 --- a/client/src/views/modals/related-list.js +++ b/client/src/views/modals/related-list.js @@ -253,7 +253,7 @@ class RelatedListModalView extends ModalView { this.$header.append( title || $('').text( - this.getLanguage().translate(this.link, 'links', this.entityType) + this.getLanguage().translate(this.link, 'links', this.scope) ) );