From 66a84981c125d44c1f68f56be61c6777b694f497 Mon Sep 17 00:00:00 2001 From: Vlad Leonov Date: Wed, 5 Jul 2023 11:46:57 +1200 Subject: [PATCH] No CaptureStateCheck if InWriteTransaction --- MAIN/src/Features/FeatureMgt.Codeunit.al | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAIN/src/Features/FeatureMgt.Codeunit.al b/MAIN/src/Features/FeatureMgt.Codeunit.al index 0b8cc2d..379311a 100644 --- a/MAIN/src/Features/FeatureMgt.Codeunit.al +++ b/MAIN/src/Features/FeatureMgt.Codeunit.al @@ -140,6 +140,8 @@ codeunit 58537 "FeatureMgt_FF_TSL" Enabled := StrPos(EnabledFeatureIds, '#' + FeatureID + ',') <> 0; if Session.GetExecutionContext() <> ExecutionContext::Normal then exit; + if Database.IsInWriteTransaction() then + exit; NavApp.GetCallerModuleInfo(CallerModuleInfo); CaptureStateCheck(FeatureID, Enabled, CallerModuleInfo) end;