Results 1 to 3 of 3

Thread: Answer: How to audit default fields

  1. #1
    rgtft is offline Senior Member
    Join Date
    Nov 2008
    Location
    East Lansing, MI
    Posts
    41

    Post Answer: How to audit default fields

    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

    1. Create/modify php file in /custom/Extension/modules/Contacts/Ext/Vardefs/custom.php
    2. 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)
    3. Rebuild Sugar extensions thorugh Admin, Repair, Rebuild Extensions
    4. 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;
    ?>
    

  2. #2
    Danielg42 is offline Sugar Community Member
    Join Date
    Jun 2006
    Location
    Orange County, CA
    Posts
    187

    Default Re: Answer: How to audit default fields

    When I set this for the accounts module in 5.2.0a, all the fields become auditable except for the address field.
    Is the address field in Accounts any different?

  3. #3
    rgtft is offline Senior Member
    Join Date
    Nov 2008
    Location
    East Lansing, MI
    Posts
    41

    Default Re: Answer: How to audit default fields

    Quote Originally Posted by Danielg42 View Post
    When I set this for the accounts module in 5.2.0a, all the fields become auditable except for the address field. Is the address field in Accounts any different?
    I'm on 5.1.0, so I'm not sure if something has changed between 5.1 and 5.2 -- you wouldn't think so.

    Try this:
    1. Create a test/dummy account
    2. Edit the test/dummy account and change the primary/shipping address
    3. Save the address change
    4. Click on the 'View Change Log' button
    5. See if your address change was logged


    In Studio, Admin does your shipping_address_street field have a check mark showing audit?

    Sorry I don't have a better answer.
    Rob

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 2010-05-18, 12:30 AM
  2. Audit Custom Fields
    By mmhasan20 in forum Developer Help
    Replies: 7
    Last Post: 2009-02-10, 07:37 AM
  3. Audit all fields?
    By cademichaels in forum Customer Support
    Replies: 0
    Last Post: 2007-10-15, 11:34 PM
  4. Hot to Audit Custom Fields
    By tbivans in forum Developer Help
    Replies: 4
    Last Post: 2006-12-21, 01:15 PM
  5. Definitive Answer: Searching Custom Fields
    By bjs3 in forum General Discussion
    Replies: 8
    Last Post: 2005-09-14, 11:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •