Skip to content

Commit

Permalink
Fix rule 7 if extensions are not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanMaron authored Dec 9, 2024
1 parent dbe6a32 commit 3501c94
Showing 1 changed file with 15 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,21 @@ codeunit 71180283 UnusedExtensionInstalledSESTM implements IAuditAlertSESTM
begin
Extensions.SetRange("App ID", AppId);
Extensions.ReadIsolation(IsolationLevel::ReadUncommitted);
if not Extensions.IsEmpty() then begin
Company.SetRange("Evaluation Company", false);
if Company.FindSet() then
repeat
foreach TableId in TablesToVerify do begin
Clear(RecRef);
if Extensions.IsEmpty() then
exit;

RecRef.Open(TableId, false, Company.Name);
if not RecRef.IsEmpty() then
exit;
RecRef.Close();
end;
until Company.Next() = 0;
end;
Company.SetRange("Evaluation Company", false);
if Company.FindSet() then
repeat
foreach TableId in TablesToVerify do begin
Clear(RecRef);

RecRef.Open(TableId, false, Company.Name);
if not RecRef.IsEmpty() then
exit;
RecRef.Close();
end;
until Company.Next() = 0;

AppName := NavApp.GetModuleInfo(AppId, AppInfo) ? AppInfo.Name : '<unknown>';

Expand Down Expand Up @@ -108,4 +109,4 @@ codeunit 71180283 UnusedExtensionInstalledSESTM implements IAuditAlertSESTM
begin

end;
}
}

0 comments on commit 3501c94

Please sign in to comment.