Audit trail not logging delete events

0
Has anyone has issues with Audit Trail module not logging deletes of records?  I have double checked my before delete event on the entity and everything looks correct.  The logging of create and edit events is working as expected.  I added a breakpoint to the before delete mircroflow and was able to verify that microflow is getting triggered, but the CreateLogRecordChangesBeforeDelete Java action is not creating a Log object as expected.  Has anyone seen this issue before?
asked
2 answers
7

Indeed this is a long known bug. See also GitHub for it.  Logged it almost a year ago and I also filed a ticket for this a month back, but hasn’t been resolved yet, even though the fix is very easy. See below my comment  from GitHub on how to solve this:

in log/CreateLogObject when checking

else if( CreateLogObjectWithoutMemberChanges ) {

change this to

else if( CreateLogObjectWithoutMemberChanges || logType == TypeOfLog.Delete) {

 

answered
0

Hello,

Can you clarify when this scenario happens?  I could not reproduce the problem.

 

Best,

Pouya

 

 

answered