Results 1 to 5 of 5

Thread: audit account name in contact module

  1. #1
    kajanni is offline Member
    Join Date
    Jan 2009
    Posts
    5

    Default audit account name in contact module

    Hi
    i'm using sugarcrm ce 5.1.0b Build 4905.
    I want to audit the accountname field in the contact module.
    I tried the following even its for 4.5.1
    https://www.sugarcrm.com/forums/showthread.php?p=129689

    But it didnt work. I also looked at 5.2. but it isn't a feature there either.
    If anyone has a soluton i wolud like to here it.
    thx
    jan

  2. #2
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: audit account name in contact module

    The referenced patch works in 5.1.0a-5.1.0c and in 5.2.0.

    Do not forget to set the

    'audited'=>'true',

    lines in vardef.php like:

    PHP Code:
     'account_name' =>
      array (
       
    'name' => 'account_name',
       
    'rname' => 'name',
       
    'id_name' => 'account_id',
       
    'vname' => 'LBL_ACCOUNT_NAME',
       
    'join_name'=>'accounts',
       
    'type' => 'relate',
       
    'link' => 'accounts',
       
    'table' => 'accounts',
       
    'isnull' => 'true',
       
    'module' => 'Accounts',
       
    'dbType' => 'varchar',
             
    'audited'=>'true',
       
    'len' => '255',
       
    'source' => 'non-db',
       
    'unified_search' => true,
      ),
     
    'account_id' =>
      array (
       
    'name' => 'account_id',
       
    'rname' => 'id',
       
    'id_name' => 'account_id',
       
    'vname' => 'LBL_ACCOUNT_ID',
       
    'type' => 'relate',
       
    'table' => 'accounts',
       
    'isnull' => 'true',
       
    'module' => 'Accounts',
       
    'dbType' => 'id',
             
    'audited'=>'true',
       
    'reportable'=>false,
       
    'source' => 'non-db',
       
    'massupdate' => false,
                
    'duplicate_merge'=> 'disabled',
                
    'hideacl'=>true,
      ), 
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  3. #3
    kajanni is offline Member
    Join Date
    Jan 2009
    Posts
    5

    Default Re: audit account name in contact module

    hm ok and the vardef.php should be in sugar/modules/Contacts/vardef.php am i right?

    and the other patch should be in sugar/includes/database/DBHelper.php am i right?

    i will try this again
    thx

  4. #4
    kajanni is offline Member
    Join Date
    Jan 2009
    Posts
    5

    Default Re: audit account name in contact module

    yes it works.
    thanks a lot. now the account id is in the change log, but not the account name. Any idea?
    I mean i'm happy like this but i'd like to understand this.
    but thx a lot

  5. #5
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: audit account name in contact module

    If you mark account_id and account_name in vardefs.php with audited = true, you should see ...

    ... in the database a a line containing the changed account_id

    ... in the panel "View change log" the changed account_name

    This is because of the special handling for related fields in panels.
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 11
    Last Post: 2011-06-30, 10:44 AM
  2. Replies: 0
    Last Post: 2008-08-06, 09:14 AM
  3. How to audit Account Name field
    By enrikm in forum Help
    Replies: 1
    Last Post: 2007-07-09, 02:34 AM
  4. Replies: 4
    Last Post: 2007-05-29, 07:29 AM
  5. Individual Contact NO associated Account Module
    By directjj in forum Feature Requests
    Replies: 0
    Last Post: 2006-04-07, 05:09 PM

Tags for this Thread

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
  •