Skip to content

Commit

Permalink
No CaptureStateCheck if InWriteTransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
vody committed Jul 4, 2023
1 parent d54aee2 commit 66a8498
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MAIN/src/Features/FeatureMgt.Codeunit.al
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 66a8498

Please sign in to comment.