mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
Merge branch 'fix'
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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)
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user