Results 1 to 6 of 6

Thread: Custom Task Status not displaing in activity or history

  1. #1
    cballew is offline Junior Member
    Join Date
    Apr 2008
    Posts
    2

    Default Custom Task Status not displaing in activity or history

    Sugar 5.0

    Normaly, when you create a task it will display in either the account history or activiy based on the status value.

    I have created custom status values and the task will not display under activities.

    How do i change the filter in the account activity report to include the custom status values.

    Thank you in advance.
    Last edited by cballew; 2008-04-10 at 07:47 AM. Reason: Was trying to make it clearer

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Custom Task Status not displaing in activity or history

    Hi, ciballew.

    You can edit the script modules/Tasks/metadata/subpanels/forAccounts.php and add into it the new field.

    But you will need to add the same field into subpanels forAccounts.php of all modules under Activities, other way the subpanel will die due a sql error (different number of columns in union).
    Take a look into the code of forAccount.php subpanel and you will see an way to force a field to exists just for avoiding this kind of error.

    A better way is to preserve the files inside modules and create new one under custom/modules and make the necessary changes for calling the new one and igoring the old one. This is done into extended layoutdefs of accounts.

    Cheers

    --
    André Lopes
    Lâmpada Global Services
    Rua Bela Cintra, 299 conjunto. 51
    São Paulo, SP 01415-000
    tel1. 55 11 3237-3110
    e-mail: info@lampadaglobal.com

  3. #3
    cballew is offline Junior Member
    Join Date
    Apr 2008
    Posts
    2

    Default Re: Custom Task Status not displaing in activity or history

    I am not adding a new field, I just added a couple values to "task_status_dom" dropdown list.

    I don't want to sound ungrateful, because I really do like what Sugar is doing here.
    Unless I am missing something this fringes on broken and not a simple oversight?
    Should I report this as a bug?

    Under accounts you “should” be able to see EVERYTHING that has been associated with an account.
    If the task is set to any “out of the box” value it will display under the “Activities” sub-panel.
    Once the task has been marked as completed it moves to the “History” sub panel.
    Shouldn’t the default behavior be such that if the status of a task is set to ANY value (other than completed) it is displayed in the “Activities” sub-panel?

    I used the “Dropdown Editor” (as it was designed) to add a couple values to an existing “task_status_dom” dropdown list.
    If a task is set with one of the new values then it will vanish from the “Activities” sub-panel and I have to go digging through the shared calendars to find it.
    If the task does not have a start date then it won’t even show on a calendar. This makes it very difficult to answer questions when the customers call for a status update.

    Why would I have to have to manipulate code by hand that stands a chance of getting over written with patches and service releases?

    --Cballew

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Custom Task Status not displaing in activity or history

    Hi, cballew

    Sorry didn´t understand what you are trying to do.

    It is pretty easy to fix.

    Look at modules/Tasks/metadata/subpanels/
    There are 2 files:
    forActivities.php and forHistory.php.

    Inside each one there is a key called 'where', which is filled with a where clause
    You can override this where including your new fields.

    If you don´t want to override this core script then you could create an extended layoutdefs under all modules which have activities and history subpanels changing the subpanel_name.
    You create two new subpanel definitions from the forActivities and forHistory with the proper changes and refers these into extended layoutdefs.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

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

    Default Re: Custom Task Status not displaing in activity or history

    Quote Originally Posted by andopes
    Hi, ciballew.

    You can edit the script modules/Tasks/metadata/subpanels/forAccounts.php and add into it the new field.
    Put your customizations in custom/modules/Tasks/metadata/subpanels/forAccounts.php and custom/working/modules/Tasks/metadata/subpanels/forAccounts.php
    to be upgrade safe!
    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

  6. #6
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Custom Task Status not displaing in activity or history

    Very thank you, Clint!!

    I had not know it before!

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 8
    Last Post: 2011-11-28, 03:36 AM
  2. upgraded to 4.5.1e, received "Metadata for table tracker does not exist"
    By sfgeorge in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-09-03, 02:24 PM
  3. Asterisk Patch 1.1.0 Crash on logon
    By skyracer in forum Help
    Replies: 6
    Last Post: 2006-07-08, 06:30 AM
  4. Replies: 7
    Last Post: 2006-06-06, 07:56 PM
  5. Replies: 0
    Last Post: 2005-09-24, 10:27 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
  •