Results 1 to 4 of 4

Thread: assigned to field in cases default to blank

  1. #1
    shawncooper is offline Sugar Community Member
    Join Date
    Jan 2008
    Posts
    18

    Default assigned to field in cases default to blank

    Hi
    I am trying to defualt the assigned to field in a create new case to blank, so that user is forced to enter the asigned to field and not just accept the default name.

  2. #2
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: assigned to field in cases default to blank

    You would have to make some custom code changes ... you may be better served training your users ...

  3. #3
    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: assigned to field in cases default to blank

    You need to create a custom view.edit.php to specify a new EditView class, which extends the default EditView2.php and implement into that the function

    PHP Code:
        function createFocus(){
             global 
    $beanList$beanFiles;
            if(empty(
    $beanList[$this->module]))return;
            if(!
    $this->focus ){
               
    $bean $beanList[$this->module];
                require_once(
    $beanFiles[$bean]);
               
    $obj = new $bean();
               
    $this->focus $obj;
            }

            
    //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)) {
               
    $this->focus->fill_in_additional_detail_fields();
               
    $this->focus->assigned_user_id '';
            }
        } 
    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.

  4. #4
    offcourse is offline Sugar Community Member
    Join Date
    Jul 2008
    Posts
    28

    Default Re: assigned to field in cases default to blank

    Hi Andopes

    Can I ask you to detail that a little bit? I am trying to default the assigned user in the bug_tracker to our IT person. That way, he will allways be automatically notified when a new bug is reported.

    Where do I create that file?
    Whate else should be on that file?

    I tried to create the view.edit.php file in \custom\modules\bugs\views and place only the code you provided, but when I went to create a bug the page was blank.

    then I added the contents of the view.edit.php file in \modules\bugs\views and put it all together, but that left all the same as in the beggining.

    so where do I go now? How to I default the assigned_to field to the specific user I want?

    Thank you

    Mário

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Assigned to field empty by default
    By WEB11 in forum Help
    Replies: 13
    Last Post: 2010-11-10, 10:06 AM
  2. Replies: 6
    Last Post: 2009-07-22, 08:04 PM
  3. Replies: 1
    Last Post: 2009-07-13, 08:16 AM
  4. Replies: 0
    Last Post: 2008-09-08, 09:13 PM
  5. Replies: 4
    Last Post: 2008-03-24, 02:50 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
  •