Results 1 to 3 of 3

Thread: leads sort order by name

  1. #1
    sigarffs is offline Junior Member
    Join Date
    Jun 2007
    Posts
    1

    Default leads sort order by name

    Hello,

    There seems to be a problem when selecting a lead after sorting by first name. When selecting a lead the following query failure shows:

    Error retrieving Lead list: Query Failed:SELECT leads.*, users.user_name assigned_user_name , leads_cstm.* FROM leads LEFT JOIN users ON leads.assigned_user_id=users.id LEFT JOIN leads_cstm ON leads.id = leads_cstm.id_c where (leads.first_name like 'd%' AND leads.assigned_user_id ='721d3e61-f392-c7e9-36c4-4651bb8e44f4' AND leads.assigned_user_id ='721d3e61-f392-c7e9-36c4-4651bb8e44f4' ) AND leads.deleted=0 ORDER BY name ASC LIMIT 2,1::MySQL error 1054: Unknown column 'name' in 'order clause'

    I tried the query in MySql. The table leads has no field called 'name'. This is the column name of the web interface. Seems to be a bug, because if name is substitute by first_name ( a column that exists in table leads) the query on MySql returns results.

    Also, if leads are sorted by "status" (on the web interface) there are no problems. However, when sorting by "status", leads are not listed by name and it makes it hard finding them.

    Suggestions and ideas are welcome.

    Thank you.

    Krassimri S.

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: leads sort order by name

    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  3. #3
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: leads sort order by name

    Another solution is to turn off the vcr by adding
    'disable_vcr' => true,
    to your config.php

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sort order descending problem FIXED!!!
    By MrPresley in forum General Discussion
    Replies: 60
    Last Post: 2007-08-20, 08:56 AM
  2. Sort Leads list alphabetically
    By diana.stuhlmiller in forum Help
    Replies: 1
    Last Post: 2007-01-26, 06:59 PM
  3. Task "View Summary" sort order
    By 3tpcad in forum Help
    Replies: 0
    Last Post: 2006-08-03, 08:03 PM
  4. Sugar Web List Sort Order
    By jasonadmin in forum Developer Help
    Replies: 0
    Last Post: 2006-06-25, 11:23 PM
  5. Replies: 1
    Last Post: 2005-10-25, 06:09 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
  •