Results 1 to 2 of 2

Thread: Solution for Bug 21328 - default team in subpanels

  1. #1
    kotrbtho is offline Sugar Community Member
    Join Date
    Apr 2008
    Location
    Austria
    Posts
    10

    Default Solution for Bug 21328 - default team in subpanels

    Hi,

    This is a fix for feature request/bug #21238
    Link.

    It's about following problem.
    Subpanels only!!!
    If you create e.g. a task for a contact, the proposed team is not the default team of the user. It's a random team. At least I coudn't identify any logic behind the proposal.
    This fix defaults the proposal to the default team of the user, so the proposal isn't random anymore.

    How to test:
    Open a contact and hit "Create task", "Schedule Meeting" and "Schedule Call".
    I'm usually getting 2 different proposals.

    How to apply:
    Edit EditView2.php in include/EditView/.

    Open file and search for function "createFocus" - line 117

    replace

    PHP Code:
    //If there is no idea, assume we are creating a new instance
            //and call the fill_in_additional_detail_fields where initialization
            //code has been moved to
            
    if(empty($this->focus->id)) {
               global 
    $current_user;
               
    $this->focus->fill_in_additional_detail_fields();
               
    $this->focus->assigned_user_id $current_user->id;
            } 
    with

    PHP Code:
    //If there is no idea, assume we are creating a new instance
            //and call the fill_in_additional_detail_fields where initialization
            //code has been moved to
            
    if(empty($this->focus->id)) {
               global 
    $current_user;
               
    $this->focus->fill_in_additional_detail_fields();
               
    $this->focus->assigned_user_id $current_user->id;
           
    // SugarBug 21238 
           
    $this->focus->team_id $current_user->default_team;
           
    $this->focus->team_name $current_user->default_team_name;
            } 

    This fix is currently running on a dev.system for 2 days. It's going to a productive system on Monday, 5th.
    I will update this thread if there are any issue.

    Cheers

    Tko
    Last edited by kotrbtho; 2008-04-30 at 02:57 PM.

  2. #2
    kotrbtho is offline Sugar Community Member
    Join Date
    Apr 2008
    Location
    Austria
    Posts
    10

    Default Re: Solution for Bug 21328 - default team in subpanels

    Fix is running now 2 days without issues in our live system (app. 10 users).
    Looks good
    tko

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. List View Population
    By atin in forum Help
    Replies: 5
    Last Post: 2008-04-24, 05:57 AM
  2. Employee->User Conversion fails to create default team
    By richardk@idealogical.com in forum Help
    Replies: 0
    Last Post: 2006-07-26, 07:11 PM
  3. SugarCrm 4.0 Patch
    By mgamboa in forum General Discussion
    Replies: 0
    Last Post: 2005-12-21, 04:14 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
  •