From 2c5861e9cbc7ad6e258516fe4fe1e3dfddac49d9 Mon Sep 17 00:00:00 2001 From: Jack Anderson Date: Fri, 26 Jul 2024 14:57:19 +0100 Subject: [PATCH] Fix #478 - field logic not being added --- .../RecordView/RecordViewCurrencyFieldMapper.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/backend/ViewDefinitions/LegacyHandler/RecordView/RecordViewCurrencyFieldMapper.php b/core/backend/ViewDefinitions/LegacyHandler/RecordView/RecordViewCurrencyFieldMapper.php index d100fce8d..54d6d1b18 100644 --- a/core/backend/ViewDefinitions/LegacyHandler/RecordView/RecordViewCurrencyFieldMapper.php +++ b/core/backend/ViewDefinitions/LegacyHandler/RecordView/RecordViewCurrencyFieldMapper.php @@ -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; }