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'); 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) ) );