Hello,
is there a proper / safe way to enable the audit for modules that are not audited ? for instance, documents ?
Many thanks,
Fred
Hello,
is there a proper / safe way to enable the audit for modules that are not audited ? for instance, documents ?
Many thanks,
Fred
I have not tried, but you should be able to do a vardef extension for the module:
in custom/Extension/modules/Documents/Ext/Vardefs/
$dictionary['Document']['audited'] = true;
QRR should then prompt you to create the _audit table for the module.
Then, of course, you will need to pick which fields you want audited.
FrancescaS
Hi Francesca Shiekh,
this is the way we proceeded but we want to be sure that we were not wrong.
Also, this is not enough because we have to add the VIEW AUDIT LOG entry in the record menu.
Fred
As I said I have not done this before but perhaps it's worth a try....
Did adding that dictionary definition create the audit table? If so I think that's a good start.
Did it allow you to make some fields in the module "auditable" in Studio? That would be another good sign.
You can try adding this to the actiondropdown in your record.php
array ( 'type' => 'rowaction', 'event' => 'button:audit_button:click', 'name' => 'audit_button', 'label' => 'LNK_VIEW_CHANGE_LOG', 'acl_action' => 'view', ),
And see if it works.
Not the most scientific approach but maybe you get lucky?
Or maybe someone much better than me, like André Lopes, or Chris Raffle has a better answer for you
FrancescaS
Hello,
this is the way we did it and we confirm that it works (as far as we tested it) like a charm.
But we were most scared that Sugar doesn't enable this feature for the Document module for a good reason that we don't get.
Nice to see that experts like Francesca Shiekhand Chris Raffle confirm the solution.
Have a good day.
Fred
Hello,
this is the way we did it and we confirm that it works (as far as we tested it) like a charm.
But we were most scared that Sugar doesn't enable this feature for the Document module for a good reason that we don't get.
Nice to see that experts like Francesca Shiekhand Chris Raffle confirm the solution.
Have a good day.
Fred