Results 1 to 3 of 3

Thread: Unified search for account_name

  1. #1
    mapu is offline Junior Member
    Join Date
    Jan 2008
    Posts
    3

    Default Unified search for account_name

    It appears that the unified search (the Search box in the upper right) does not search on account name. Here is our issue:

    1) We have a lead whose status is "In process".

    2) The Account name is "MyCompany"

    3) A search in the unified search box fails to find the lead

    4) A search on a contact within that lead successfully provides results

    Any help would be greatly appreciated.

    Michael

  2. #2
    dpatech is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    NC
    Posts
    287

    Default Re: Unified search for account_name

    This looks like something that was broken during the 5.0 release. In 4.5.1 you could search on Leads.account_name using the unified search.

    Here are the vardefs.php for Leads.account_name in version 4.5.1

    PHP Code:
      'account_name' => 
      array (
        
    'name' => 'account_name',
        
    'vname' => 'LBL_ACCOUNT_NAME',
        
    'type' => 'varchar',
        
    'len' => '150',
        
    'unified_search' => true
        
    'comment' => 'Account name for lead'
      
    ), 
    In Sugar 5.0, this has been changed to a "Relate" field which does not make sense to me.

    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',
        
    'len' => '255',
    ), 
    I think you could revert the definition for account_name back to what was used 4.5.1 and it would work ok. Sugar 5.0 still stores the value for account_name as a data field in the Leads table so what has been done makes no sense. If you try this be sure to use the "Admin" -> Repair tools to clear the vardefs cache. You may also have to delete the file "cache/modules/unified_search_modules.php" so Sugar will rebuild his list of unified_search_fields.
    - Sugar Team
    dpa Technology LLC
    e-mail: dpaDeveloper@dpatechnology.com
    web: http://www.dpatechnology.com

  3. #3
    Angelo is offline Sugar Community Member
    Join Date
    May 2006
    Posts
    15

    Default Re: Unified search for account_name

    Great tip it works.

    I have cleared the cache from the admin panel.

    Thanks !

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 2007-02-17, 10:13 PM
  2. unified search
    By Jimbo in forum Developer Help
    Replies: 3
    Last Post: 2007-02-13, 03:25 PM
  3. Unified Search not finding a contact
    By dtokeefe in forum Help
    Replies: 9
    Last Post: 2007-01-31, 01:30 PM
  4. unified search question.
    By sugarcare in forum Developer Help
    Replies: 3
    Last Post: 2006-10-07, 11:19 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
  •