Audit changes in relationships

Is there any way to audit changes made to relationship links? i.e. I want to see changes made to a specific relationship or relate field in the Change Log.

Since these links can be so easily changed or deleted via submodules in any other module it would be great to be able to undo such changes (when made by mistake) by looking at the change log.

Check this!

I used it to achieve something similar. You may need to modify the code in the post.

2 Likes

Just for everyone wondering how to do this here in 2020.

You just have to extend the vardef. In my example the relation name is accounts_accounts_2 in account module.

So in SuiteCRM\custom\Extension\modules\Accounts\Ext\Vardefs

Add a file and just add this :
$dictionary[‘Account’][‘fields’][‘accounts_accounts_2_name’][‘audited’]=true;

1 Like