Results 1 to 4 of 4

Thread: Leads list erroring

  1. #1
    derekforeman is offline Junior Member
    Join Date
    Feb 2007
    Posts
    4

    Default Leads list erroring

    When clicking on a lead from the list of leads in the lead module I get a sql error;


    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.deleted=0 ORDER BY name ASC LIMIT 0,1::MySQL error 1054: Unknown column 'name' in 'order clause'

    As you would expect removing the ORDER BY clause eliminates the error, however I'm wondering how the error originated in the first place? I've not loaded any extensions or modules to sugar, not modified any code or touched the database structure.. As with all things the statement "it just appeared" comes to mind... I have been adding custom fields to the leads module but haven't removed any of the default fields... Any thoughts on where to go with this one?

    Thanks

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

    Default Re: Leads list erroring

    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
    derekforeman is offline Junior Member
    Join Date
    Feb 2007
    Posts
    4

    Default Re: Leads list erroring

    Got it,

    $ diff Lead.php.new Lead.php
    262,270c262
    <
    < //BEGIN: 6/20/07 -- Fix for problem where sorting by name on listview causes a MySQL error when attempting to pull up DetailView, Angel Maga####amagana[at]actsgold.com, Acts Automation, Inc., www.actsautomation.com
    < if($order_by == "name DESC") {
    < $order_by = "leads.first_name + leads.last_name DESC";
    < } elseif ($order_by == "name ASC") {
    < $order_by = "leads.first_name + leads.last_name ASC";
    < }
    < //END
    <
    ---
    >


    Cheers Angel. Has this been picked up by the Sugar dev team?

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

    Default Re: Leads list erroring

    I submitted it and Julian (Sugar Team) was going to try to get it into the E patch, but it looks like it didn't make it.

    Hopefully some iteration of it will make it into a future release.
    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)
    ______________________________________________

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Leads list view issue
    By startak in forum Help
    Replies: 1
    Last Post: 2010-05-17, 12:30 PM
  2. Edit Leads List View, Leads Dissapeared!
    By Kallisti in forum Help
    Replies: 3
    Last Post: 2007-05-04, 11:37 AM
  3. How to define list of targets from Leads by criteria
    By datura77 in forum Marketing/Campaign Management
    Replies: 3
    Last Post: 2007-03-29, 04:25 PM
  4. [urgent] target list with all leads in the system
    By sshweta in forum Marketing/Campaign Management
    Replies: 5
    Last Post: 2006-09-29, 09:54 PM
  5. adding leads to target list
    By johnsam in forum Help
    Replies: 0
    Last Post: 2006-01-15, 10:36 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
  •