Results 1 to 3 of 3

Thread: New module, sqs pulls username instead of Name and yields error

  1. #1
    Francescas's Avatar
    Francescas is offline Sugar Community Member
    Join Date
    Dec 2011
    Posts
    159

    Default New module, sqs pulls username instead of Name and yields error

    I created a very basic module with three fields:
    name, account_executive, sales_assistant

    account_executive and sales_assistant are relate fields to users

    all works fine if I use the popup to populate those fields, it pulls in the full name and all is fine.

    But when I start typing in either relate field the sqs pulls up user name instead of full name and then when I save it errors out: "No match for field: Sales Executive", "No match for field: Sales Assistant"

    If I change my own user settings to "Show full name" then the sqs works correctly and pulls in names.

    Any workarounds to let the sqs pull full names regardless of the "Show full name" setting, or at least let it save with the user name?

    This particular module was created on our test machine which was recently upgraded to SugarCRM 6.3 Pro.

  2. #2
    R3dian is offline Junior Member
    Join Date
    May 2011
    Posts
    8

    Default Re: New module, sqs pulls username instead of Name and yields error

    From what i understand the best and easy way to do it through upgrade safe way is copy the modules/Home/quicksearchQuery.php to custom/modules/Home/quicksearchQuery.php , in this file comment out the get_user_array function 285,287,288 and 289 line numbers. From now on wether you select full name or not it will show you full names in the quick search.

  3. #3
    Francescas's Avatar
    Francescas is offline Sugar Community Member
    Join Date
    Dec 2011
    Posts
    159

    Default Re: New module, sqs pulls username instead of Name and yields error

    Thank you.

    My workaround has been to create the module without the user relate fields, then add those fields as custom fields. This way it will ignore user preferences and pull up names regardless.

    Francesca

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: 2012-01-23, 04:36 PM
  2. Replies: 1
    Last Post: 2009-05-15, 03:22 PM
  3. "Find Duplicates" yields this error message..
    By Altstatten in forum Help
    Replies: 1
    Last Post: 2008-10-14, 09:25 PM
  4. How to add a field that pulls names from Users/Employees?
    By groovyipo in forum Developer Help
    Replies: 3
    Last Post: 2008-08-25, 09:39 PM
  5. Replies: 0
    Last Post: 2006-07-05, 05:23 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
  •