Results 1 to 5 of 5

Thread: Search results - parent name instead of Account name

  1. #1
    Billwobo is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    33

    Default Search results - parent name instead of Account name

    I put the "member of" name (parent name) field in my Account list. When I search the list with the Account name, it searches the parent name instead of the Account name.

    It's not a big bug. I removed the parent name from the list and now it's fine. But it would be useful to me to show parent name in the list.

    I'm running 5.1RC.

    Anyone knows a solution?

  2. #2
    ptemplin7 is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Puget Sound Washington
    Posts
    380

    Default Re: Search results - parent name instead of Account name

    Have you checked the bug list for this? Sound like it should be a bug if it isn't parsing the name correctly to use the account name not the parent name.

    Report it if it isn't listed,
    Paris


    PS Make sure it reproducible.

  3. #3
    enrashid is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    59

    Default Re: Search results - parent name instead of Account name

    Quote Originally Posted by Billwobo
    I put the "member of" name (parent name) field in my Account list. When I search the list with the Account name, it searches the parent name instead of the Account name.

    It's not a big bug. I removed the parent name from the list and now it's fine. But it would be useful to me to show parent name in the list.

    I'm running 5.1RC.

    Anyone knows a solution?
    This was a bug in d release, but was fixed in e release and some other post said that it was broken again in either the f release or RC. Submit a bug report for this if one is not already submitted because this is a big deal if you cannot search on an account with a parent.

  4. #4
    aewatkins is offline Member
    Join Date
    Jun 2008
    Posts
    9

    Default Re: Search results - parent name instead of Account name

    This was reported as a bug, but I'm wondering if anyone knows how to fix this manually. Please? We're on 5.0.0f Professional trying to get Sugar rolled out. Not impressive to management that they can't search properly. We really would like to have the Parent Company in the list view if possible. It does work if we remove the Parent Comany from the List View though.

    Help if you can - please?!? Thanks in advance!

  5. #5
    niccl is offline Junior Member
    Join Date
    Nov 2008
    Posts
    2

    Default Re: Search results - parent name instead of Account name

    I 'fixed' this by commenting out a line in data/SugarBean.php. In my bersin (5.1b) it's line 3231. details:
    //Replace references to this table in the where clause with the new alias
    $join_table_name = $this->$data['link']->getRelatedTableName();
    #### NCL fix: comment out the following line ###
    # $where = preg_replace('/(^|[\s(])' . $join_table_name . '\./', '${1}' . $params['join_table_alias'] . '.', $where);
    if(!$table_joined)
    {
    $joined_tables[$params['join_table_alias']]=1;
    $joined_tables[$params['join_table_link_alias']]=1;
    }
    $jtcount++;

    I dion't guarantee it's a complete fix, but I haven't yet found a case that this fix breaks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 2008-07-01, 08:21 PM
  2. Lead Search >> account name searches account module in 5.0!
    By lowJack01 in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2008-06-11, 05:12 PM
  3. Note Search, not finding results
    By FORDXR in forum Help
    Replies: 0
    Last Post: 2005-08-05, 03:04 AM

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
  •