Results 1 to 8 of 8

Thread: Account Search problem

  1. #1
    piccirm2 is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    65

    Default Account Search problem

    Hi

    if I try to search an account using "name" field it seems that it correpsond to another field "member of"
    I get this suspect after installing enhanced search plugin and performing some "like" search.
    also with billing city search I get some not explained behavior
    How can I debug this problem ? how does the search function work ?

    In the demo site of sugar it works (so it's not a bug)
    I have CE 5.0.0c version

  2. #2
    piccirm2 is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    65

    Default Re: Account Search problem

    tks to andopes I was able to debugg....

    I've also understood why in the Account basic seach form when I seach for name I get wrong results: because the field called name in the Studio during the editing of the search panel in the parent_name account !
    The question is: where these mapping between table column and sugar filed name is done in order to fix it ???

  3. #3
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Account Search problem

    Hi.
    They are in the metadata modules/YourModule/vardefs.php
    Or if they are extended vardefs in custom/Extension/modules/YourModule/Ext/Vardefs/vardefs.ext.php

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  4. #4
    piccirm2 is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    65

    Default Re: Account Search problem

    I've found in the Account vardefs.php

    'account_name' =>
    array (
    'name' => 'account_name',
    'rname' => 'name',
    'id_name' => 'account_id',
    'vname' => 'LBL_MEMBER_OF',
    'type' => 'relate',
    'table' => 'parent_accounts',
    'isnull' => 'true',
    'group'=>'parent_name',
    'module' => 'Accounts',
    'massupdate' => false,
    'source'=>'non-db',
    'len' => 36,
    'link'=>'member_of',
    'unified_search' => true,
    'Importable' => false,
    ),

    even if i haven't changed it, 'vname' => 'LBL_MEMBER_OF', it's quite strange
    But I couln't find LBL_MEMBER_OF label in the language definition file

    In addition in the vardfes I do not see, for example, other fields like city (for which also I have problems)
    there's something that I not understanding...

  5. #5
    LiveDPI is offline Member
    Join Date
    Feb 2008
    Posts
    5

    Default Re: Account Search problem

    I am having this same issue, and although I find the same variable definition array as noted above, I am not clear on what the values *should* be in order to get the search to work. Can anyone provide some insite please?

  6. #6
    kenshiro is offline Sugar Community Member
    Join Date
    Mar 2007
    Location
    Macerata - ITALY
    Posts
    421

    Default Re: Account Search problem

    Hi Piccirm,
    sorry if I'm replying so late but I thought you've said that your problem wasn't due to Enhanced Search on this thread .
    Did you try to uninstall Enhanced Search and search again ?

    Enhanced Search doesn't affect vardef files, anyway.

  7. #7
    piccirm2 is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    65

    Default Re: Account Search problem

    Since I have not made too much modifications, I have reinstalled a new sugar istance and I have made customization to account module paying attention not to add any parent_name in the list view.
    So the issue remains unsolved and it's not due to enhanced search
    tks

  8. #8
    LiveDPI is offline Member
    Join Date
    Feb 2008
    Posts
    5

    Default Re: Account Search problem - SOLLUTION!

    Hey everyone. I was having this issue from both Professional and Enterprise edditions. I just upgraded both of those instances to 5.0.0e and now the account name search works GREAT! No more problems! Yay!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Account name search broken
    By bennybtl in forum Help
    Replies: 4
    Last Post: 2008-05-13, 08:53 PM
  2. Search Contacts Problem
    By willisbueller in forum Help
    Replies: 1
    Last Post: 2005-08-16, 09:49 PM
  3. Replies: 0
    Last Post: 2004-11-03, 02:17 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
  •