Merge branch 'fix'

This commit is contained in:
Yurii
2025-11-27 19:49:12 +02:00
2 changed files with 9 additions and 2 deletions

View File

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

View File

@@ -253,7 +253,7 @@ class RelatedListModalView extends ModalView {
this.$header.append(
title ||
$('<span>').text(
this.getLanguage().translate(this.link, 'links', this.entityType)
this.getLanguage().translate(this.link, 'links', this.scope)
)
);