Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: 3.5.1d - My Open Tasks

  1. #1
    Haicube is offline Sugar Community Member
    Join Date
    Sep 2005
    Posts
    10

    Default 3.5.1d - My Open Tasks

    Something is seriously damaged here.

    I've upgraded to 3.5.1d. and now suddenly My Open Tasks doesn't get displayed on the "Home" page. I would imagine some of the fixes to tasks actually broke this one. Can someone confirm they have the same problem?

  2. #2
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: 3.5.1d - My Open Tasks

    Looking into this...
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

  3. #3
    sadek's Avatar
    sadek is offline Sugar Team Member
    Join Date
    Sep 2005
    Posts
    244

    Default Re: 3.5.1d - My Open Tasks

    Are there no items in the Sub Panel, or is the Sub Panel itself completely gone?

    ~Sadek~

  4. #4
    ra42 is offline Sugar Community Member
    Join Date
    Nov 2005
    Posts
    19

    Default Re: 3.5.1d - My Open Tasks

    I'm also experiencing this problem.
    The subpanel is showing but it is empty.

  5. #5
    sadek's Avatar
    sadek is offline Sugar Team Member
    Join Date
    Sep 2005
    Posts
    244

    Default Re: 3.5.1d - My Open Tasks

    Can you change the following in <sugardir/modules/Tasks/MyTasks.php>

    from:

    $where .= "and (tasks.date_start is NULL or ";
    $where .= " CONCAT(".db_convert("tasks.date_start","date_forma t",array("'YYYY-MM-DD'")).", CONCAT(' ',". db_convert("tasks.time_start","time_format",array( "'HH24:MI:SS'"))." )) <=". "'".$tomorrow."')";

    to:

    $where .= "and (tasks.date_start is NULL or CONCAT(tasks.date_start,' ',tasks.time_start) <= '$tomorrow')";

    Please let me know if that is fixes the problem you are having.

    ~Sadek~

  6. #6
    ra42 is offline Sugar Community Member
    Join Date
    Nov 2005
    Posts
    19

    Default Re: 3.5.1d - My Open Tasks

    Thats fixed it for me. Thanks sadek!

  7. #7
    takens is offline Member
    Join Date
    Nov 2005
    Posts
    5

    Default Re: 3.5.1d - My Open Tasks

    I had the same problem and this fixed it for me too.

    Just to supply you eith some extra information:
    My collegue used the year-month-day format (My account settings) did not have this problem. After the upgrade his tasks would show up normaly in My Open Tasks. I used the day-month-year format and my tasks would not show up.

    I hope this helps

  8. #8
    Haicube is offline Sugar Community Member
    Join Date
    Sep 2005
    Posts
    10

    Default Re: 3.5.1d - My Open Tasks

    Quote Originally Posted by sadek
    Can you change the following in <sugardir/modules/Tasks/MyTasks.php>

    from:

    $where .= "and (tasks.date_start is NULL or ";
    $where .= " CONCAT(".db_convert("tasks.date_start","date_forma t",array("'YYYY-MM-DD'")).", CONCAT(' ',". db_convert("tasks.time_start","time_format",array( "'HH24:MI:SS'"))." )) <=". "'".$tomorrow."')";

    to:

    $where .= "and (tasks.date_start is NULL or CONCAT(tasks.date_start,' ',tasks.time_start) <= '$tomorrow')";

    Please let me know if that is fixes the problem you are having.

    ~Sadek~

    Works very well... thank you very much. However, I've come across a whole bunch of other errors in the 3.5.1d release, I'll post them soon..

  9. #9
    dricrm is offline Sugar Community Member
    Join Date
    Aug 2005
    Location
    Lisbon, Portugal
    Posts
    116

    Default Re: 3.5.1d - My Open Tasks

    This is broken again when upgrading to version 3.5.1e...

    cheers,
    diogo

  10. #10
    sadek's Avatar
    sadek is offline Sugar Team Member
    Join Date
    Sep 2005
    Posts
    244

    Default Re: 3.5.1d - My Open Tasks

    Interesting. I'll look into why that happened.
    In any case, this time please change the following in <sugarroot/modules/Tasks/MyTasks.php>:
    Code:
    $today = gmdate("Y-m-d H:i:s");
    // Break down the date, add a day, and print it back out again
    list($date_tmp,$time_tmp) = explode(' ',$today);
    $date = explode('-',$date_tmp);
    $time = explode(':',$time_tmp);
    $tomorrow = gmdate("Y-m-d H:i:s",gmmktime($time[0],$time[1],$time[2],$date[1],($date[2]+1),$date[0]));
    
    $ListView = new ListView();
    $seedTasks = new Task();
    $where = "tasks.assigned_user_id='". $current_user->id ."' and (tasks.status is NULL or (tasks.status!='Completed' and tasks.status!='Deferred')) ";
    $where .= "and (tasks.date_start is NULL or ";
    $where .=  " CONCAT(".db_convert("tasks.date_start","date_format",array("'YYYY-MM-DD'")).", CONCAT(' ',". db_convert("tasks.time_start","time_format",array("'HH24:MI:SS'"))." ))  <=". "'".$tomorrow."')";
    to:

    Code:
    $today = gmdate("Y-m-d H:i:s");
    // Break down the date, add a day, and print it back out again
    list($date_tmp,$time_tmp) = explode(' ',$today);
    $date = explode('-',$date_tmp);
    $time = explode(':',$time_tmp);
    $tomorrow = gmdate("Y-m-d H:i:s",gmmktime($time[0],$time[1],$time[2],$date[1],($date[2]+1),$date[0]));
    
    $ListView = new ListView();
    $seedTasks = new Task();
    if ($seedTasks->db->dbType=='mysql') {
    	$format=array("'%Y-%m-%d'");
    } else {
    	$format=array("'YYYY-MM-DD'");
    }
    
    $where = "tasks.assigned_user_id='". $current_user->id ."' and (tasks.status is NULL or (tasks.status!='Completed' and tasks.status!='Deferred')) ";
    $where .= "and (tasks.date_start is NULL or ";
    $where .=  " CONCAT(".db_convert("tasks.date_start","date_format",$format).", CONCAT(' ',". db_convert("tasks.time_start","time_format",$format)." ))  <=". "'".$tomorrow."')";
    ~Sadek~

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

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
  •