Fix #478 - field logic not being added

This commit is contained in:
Jack Anderson 2024-07-26 14:57:19 +01:00 committed by y.yerli
parent 773425c14e
commit 2c5861e9cb

View file

@ -139,6 +139,8 @@ class RecordViewCurrencyFieldMapper implements ViewDefinitionMapperInterface
$name = $cell['name'] ?? '';
$logic = $cell['logic'] ?? [];
$currencyName = $name;
$currencyIdName = 'currency_id';
$baseName = $name . '_usdollar';
@ -191,6 +193,10 @@ class RecordViewCurrencyFieldMapper implements ViewDefinitionMapperInterface
$typeConfig
);
foreach ($logic as $key => $def){
$cellDefinition['groupFields'][$name]['logic'][$key] = $def;
}
$cell['fieldDefinition'] = $cellDefinition;
$cols[$cellKey] = $cell;
}