Results 1 to 4 of 4

Thread: Customizing Audited fields ...

  1. #1
    SugatJiP is offline Member
    Join Date
    Nov 2006
    Posts
    5

    Post Customizing Audited fields ...

    Hi All.

    I'm posting this thread as a newby.
    I'm using SugarCRM 4.5.0c / Installation using the whole package in the official site).

    I have a simple question .

    After creating a new contact, and applying some changes (phone number ...), I'm able to have a look on those changes (link named "View Change Log", located at the top of the window that display Contact's information). Great.

    At the top of the popup which display those changes, we can read :
    - "Fields audited in this module: Do Not Call, Email, Office Phone, Assigned to".

    I've been asked to investigate on how to act on those audited fields.

    Is there a way to add / change / modify the audited fields' list (this, for each module which can support this functionnality) ?
    I just hope that what I expect to do is possible (surely integrated in Admin's functionnalities, but unfortunately haven't found so far ...).

    Thank you very much by advance (for all people helping in this forum).
    HAve a nice day.

  2. #2
    simple is offline Sugar Community Member
    Join Date
    Jul 2005
    Posts
    259

    Default Re: Customizing Audited fields ...

    Hi

    you can edit the file vardefs.php - e.g. modules/Contacts/vardefs.php - and add an entry 'audited' => true for each field you would like to have audited.

    E.g. to get the fax field audited, change

    Code:
            'phone_fax' =>
                    array (
                            'name' => 'phone_fax',
                            'vname' => 'LBL_FAX_PHONE',
                            'type' => 'phone',
                            'dbType' => 'varchar',
                            'len' => '25',
                            'unified_search' => true,
                            'comment' => 'Contact fax number',
                            'merge_filter' => 'enabled',
            ),
    to

    Code:
            'phone_fax' =>
                    array (
                            'name' => 'phone_fax',
                            'vname' => 'LBL_FAX_PHONE',
                            'type' => 'phone',
                            'dbType' => 'varchar',
                            'len' => '25',
                            'unified_search' => true,
                            'audited' => true,
                            'comment' => 'Contact fax number',
                            'merge_filter' => 'enabled',
            ),
    Cheers Pascal
    Simplicity GmbH

  3. #3
    SugatJiP is offline Member
    Join Date
    Nov 2006
    Posts
    5

    Default Re: Customizing Audited fields ...

    Hello Simple.

    The issue you've posted here is working fine!

    Thanx a lot for your support.
    Regards.

  4. #4
    bforchieri is offline Junior Member
    Join Date
    Mar 2007
    Posts
    3

    Default Re: Customizing Audited fields ...

    How do I can do this with the Account field?

    I've set 'audited'->true both to account_id and account_name and didn't audit the changes.


    Thanks in advance!

Thread Information

Users Browsing this Thread

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

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
  •