ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[extensibility-bug] OnAfterGetDatabaseTableTriggerSetup

Open vlkov opened this issue 4 years ago • 2 comments

Hello! In codeunit 49 GlobalTriggerManagement we have a event OnAfterGetDatabaseTableTriggerSetup where we can enable global triggers for table, but when change log is activated in codeunit 423 "Change Log Management" this variables are overrided. I suggest change this lines of code in codeunit 423 "Change Log Management" function GetDatabaseTableTriggerSetup with TempChangeLogSetupTable do begin LogInsert := "Log Insertion" <> "Log Insertion"::" "; LogModify := "Log Modification" <> "Log Modification"::" "; LogRename := "Log Modification" <> "Log Modification"::" "; LogDelete := "Log Deletion" <> "Log Deletion"::" "; end;

to

with TempChangeLogSetupTable do begin LogInsert := LogInsert or "Log Insertion" <> "Log Insertion"::" "; LogModify := LogModify or "Log Modification" <> "Log Modification"::" "; LogRename := LogRename or "Log Modification" <> "Log Modification"::" "; LogDelete := LogDelete or "Log Deletion" <> "Log Deletion"::" "; end;

vlkov avatar May 30 '22 12:05 vlkov

I have the same issue. My code worked fine before, but it seems the event order was changed since the last update. Now this event (codeunit 423) is after mine, and it overwrites the 'true' value of LogModify to 'false'.

Joerio avatar May 30 '22 14:05 Joerio

Hi,

This problem has been fixed. Deploy to 20.0 - 20.2 is in progress now.

Rgds, Oleg.

Oleg-Romashkov avatar Jun 02 '22 07:06 Oleg-Romashkov