There probably is a FAQ section, but I have not found it. I find the forum search to not be very granular. I end up using Google's site search instead of the forum search.
I hope the following helps someone.
- - - - - - - - - - - - - - - - - - - -
How to set audit flag for default fields in Sugar
Version: Sugar Community Edition 5.1.0b
OS: SUSE Linux Enterprise Server 10
- Create/modify php file in /custom/Extension/modules/Contacts/Ext/Vardefs/custom.php
- Make sure owner of the above file (custom.php) is owned by same user/account as your webserver is running (use chown command if switch is needed)
- Rebuild Sugar extensions thorugh Admin, Repair, Rebuild Extensions
- Verify audit flag is set through Admin, Studio, Contacts, Fields
Note: if you are changing a field in another module than Contacts, replace that module name with Contacts in the above instructions.
custom.php file:
Code:
<?php
/*
Make default contact fields auditable.
*/
$dictionary['Contact']['fields']['primary_address_street']['audited'] = true;
$dictionary['Contact']['fields']['primary_address_city']['audited'] = true;
$dictionary['Contact']['fields']['primary_address_state']['audited'] = true;
$dictionary['Contact']['fields']['primary_address_postalcode']['audited'] = true;
$dictionary['Contact']['fields']['primary_address_country']['audited'] = true;
$dictionary['Contact']['fields']['alt_address_street']['audited'] = true;
$dictionary['Contact']['fields']['alt_address_city']['audited'] = true;
$dictionary['Contact']['fields']['alt_address_state']['audited'] = true;
$dictionary['Contact']['fields']['alt_address_postalcode']['audited'] = true;
$dictionary['Contact']['fields']['alt_address_country']['audited'] = true;
$dictionary['Contact']['fields']['birthdate']['audited'] = true;
$dictionary['Contact']['fields']['first_name']['audited'] = true;
$dictionary['Contact']['fields']['last_name']['audited'] = true;
$dictionary['Contact']['fields']['title']['audited'] = true;
$dictionary['Contact']['fields']['do_not_call']['audited'] = true;
$dictionary['Contact']['fields']['phone_home']['audited'] = true;
$dictionary['Contact']['fields']['phone_mobile']['audited'] = true;
$dictionary['Contact']['fields']['phone_work']['audited'] = true;
$dictionary['Contact']['fields']['phone_other']['audited'] = true;
$dictionary['Contact']['fields']['phone_fax']['audited'] = true;
?>
Bookmarks