Results 1 to 3 of 3

Thread: Quick Create Task - On Cases Module

  1. #1
    rcastro is offline Senior Member
    Join Date
    Dec 2009
    Posts
    41

    Default Quick Create Task - On Cases Module

    Hi everyone!

    In the detailview of a case there's a sub-panel call 'Activities', where the user can create a New Task. When you create a new task it is automatically related to the case, but in my situation I always have a contact related to the case, so I want to automatically relate the contact with the task.

    Any ideas ?


    Thanks in advance,

    Ramiro Castro

  2. #2
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: Quick Create Task - On Cases Module

    you could either do this with view.edit or with a before save logic hook

    the problem is that you can have many contacts associated with a case but only one associated with a task

    so if there are more than one contact which one do you choose?
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  3. #3
    rcastro is offline Senior Member
    Join Date
    Dec 2009
    Posts
    41

    Default Re: Quick Create Task - On Cases Module

    mikesolomon, thanks for you answer!

    First, I'll may always have one contact per case and no more, if I have more than one I would choose the first one. But I'm pretty sure I'll always have only one.

    I thought the idea of using a logic hook, but I only want this to happend when I'm the Activities sub-panel in the DetailView of a case. I mean, when I click on 'New Task' and the quick create form of a Task appears.

    So I was looking for something like the quick create form does with the case, it automatically set the parent type and relate the current case with the task the user is creating. This is much more cleaner...

    However, I'll try a workarround with a logic hook in the Task module.

    I'm open to new ideas...

    Cheers,

    Ramiro Castro.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Add project task option to emai quick create
    By dimitsuo in forum Feature Requests
    Replies: 0
    Last Post: 2010-03-26, 01:38 PM
  2. How to change task metadata for Cases module
    By piccirm in forum Developer Help
    Replies: 6
    Last Post: 2009-08-13, 02:06 PM
  3. Replies: 1
    Last Post: 2008-09-18, 02:03 PM

Tags for this Thread

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
  •