Audit Log Relate Not Active

Hi, Everybody
I am having problems with audit. The Task module I want to track the contact_name field change but it’s not working. Everyone please help.
/custom/Extension/modules/Tasks/Ext/Vardefs/MakeAuditable.php

$dictionary['Task']['audited']=true;
$dictionary['Task']['fields']['contact_name']['audited']=true;

@pyvin
Welcome to the community!
You did all correctly. I tested. Maybe you forgot to do Admin->Repair->Quick Repair and Rebuild .

Admin->Repair->Quick Repair and Rebuild .

I did but still not working.

@pyvin

  1. Check the file:
    custom/modules/Tasks/Ext/Vardefs/vardefs.ext.php
    The lines should be presented there about audit.
  2. If the lines present check the file: cache/modules/Tasks/Taskvardefs.php
    The object Task and the field contact_name should be had all parameters include audit.

‘contact_name’ =>
array (
‘name’ => ‘contact_name’,
‘rname’ => ‘name’,
‘db_concat_fields’ =>
array (
0 => ‘first_name’,
1 => ‘last_name’,
),
‘source’ => ‘non-db’,
‘len’ => ‘510’,
‘group’ => ‘contact_name’,
‘vname’ => ‘LBL_CONTACT_NAME’,
‘reportable’ => false,
‘id_name’ => ‘contact_id’,
‘join_name’ => ‘contacts’,
‘type’ => ‘relate’,
‘module’ => ‘Contacts’,
‘link’ => ‘contacts’,
‘table’ => ‘contacts’,
‘audited’ => true,
code at cache/modules/Tasks/Taskvardefs.php
I did but still not working.

@pyvin

How do you decide that it doesn’t work?

  • You don’t see the View Change Log button.
  • The audit table of Tasks module is empty.