currency attribute detail fix

This commit is contained in:
Yurii
2025-12-03 14:34:52 +02:00
parent 2c5edc3c96
commit 5ded6b1bcf
@@ -239,6 +239,10 @@ export default class ViewDetailsModalView extends ModalView {
}
if (this.fieldType === 'currency') {
/** @type {string[]} */
const codes = this.getConfig().get('currencyList') ?? [];
const codesString = codes.map(it => `"${it}"`).join('|');
return [
{
name: this.field,
@@ -248,7 +252,7 @@ export default class ViewDetailsModalView extends ModalView {
},
{
name: this.field + 'Currency',
type: 'string',
type: codesString,
notStorable: this.fieldDefs.notStorable || false || this.fieldDefs.onlyDefaultCurrency,
readOnly: this.fieldDefs.readOnly || false,
},