Results 1 to 3 of 3

Thread: Strange field display issue

  1. #1
    Deuce is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    California
    Posts
    66

    Default Strange field display issue

    Hi, I hope someone can help me with this one.

    When I go to Leads, Saved Search & Layout tab and add the Created By to the columns to display, the user database ID will show, not the user name. Contacts, Accounts and Opportunities all display the username, as it should do. I have been digging through the code trying to find the cause of this, to no avail.
    Please post any ideas, this one is driving me nuts.

    Sugar OS, version 4.5.1.d on apache2, mssql db.

  2. #2
    dpatech is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    NC
    Posts
    287

    Default Re: Strange field display issue

    I think this is a bug in Sugar. I will report as a bug, but in meantime I fixed by making the following changes.

    In file modules\Leads\metadata\listviewdefs.php
    Change

    Code:
        'CREATED_BY' => array(
            'width' => '10', 
            'label' => 'LBL_CREATED'),
    To
    Code:
        'CREATED_BY_NAME' => array(
            'width' => '10', 
            'label' => 'LBL_CREATED'),
    Then in file modules\Leads\Lead.php
    Change
    Code:
    	function fill_in_additional_list_fields()
    	{
    		$this->fill_in_additional_detail_fields();
    		$this->get_account();
    
    	}
    To
    Code:
    	function fill_in_additional_list_fields()
    	{
    		if($this->force_load_details == true) 
    		         $this->fill_in_additional_detail_fields();
    		
    		$this->get_account();
    
    	}
    Last edited by dpatech; 2007-12-06 at 04:40 AM.
    - Sugar Team
    dpa Technology LLC
    e-mail: dpaDeveloper@dpatechnology.com
    web: http://www.dpatechnology.com

  3. #3
    Deuce is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    California
    Posts
    66

    Default Re: Strange field display issue

    That was indeed the problem.

    Thanks for the fix!!!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2007-02-08, 03:51 PM
  2. Custom field - display as hyperlink
    By ChocolateLover in forum Help
    Replies: 2
    Last Post: 2007-02-06, 03:50 PM
  3. Custom Field Issue still lingering
    By rengstrom in forum General Discussion
    Replies: 9
    Last Post: 2005-06-07, 07:37 AM
  4. Display of calculated field
    By dekskinner in forum Developer Help
    Replies: 2
    Last Post: 2005-04-26, 09:44 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
  •