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

Thread: Disable "Assigned To"

  1. #1
    andromeda9 is offline Member
    Join Date
    Mar 2009
    Posts
    9

    Default Disable "Assigned To"

    I would like to disable the "Assigned To" option in all modules for all users other than themselves. I don't want them to even see the list. Now, this same question was asked in Jan 2009 (cf http://www.sugarcrm.com/forums/showt...ht=Assigned+To). BUT..

    When I lookfor the modules in the custom subdir, there are no modules other than Contacts and Meetings. So, how do I implement the solution provided in the above link. I am using the current version of Sugar CRM community ed.

    Thank you

  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: Disable "Assigned To"

    1. remove assigned_user_name from all editviewdefs.php, quickcreatedefs.php and sidecreatedefs.php
    2. Create a global logic_hook before_save to fill the assigned_user_id with the $current_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.

  3. #3
    JVWay is offline Sugar Community Member
    Join Date
    Sep 2007
    Location
    Corvallis, Oregon
    Posts
    452

    Default Re: Disable "Assigned To"

    After you customize a module in Studio a folder for that module will appear in the custom tree. So, like Sugardev.net says in that post, you will have to remove the fields. After that you can do the custom programming listed in the last post.

    Though, I didn't read through that to see what's up so you're on you own there.
    Jerry Way
    Business Process Administrator

    Sugar 6.1.4 Professional
    (Testing 6.1.2)
    LAMP on Centos 5
    PHP 5
    MySQL 5
    Apache 2.2

  4. #4
    andromeda9 is offline Member
    Join Date
    Mar 2009
    Posts
    9

    Default Re: Disable "Assigned To"

    Thanks for the quick response. In step 1, I assume this only removes the ability to assign and not the assingment field. However in 2, with no php experience, I haven't a clue as to what to do. Can you elaboratte for a newbee.

    Thanks
    andromeda9

  5. #5
    monicaDC is offline Sugar Community Member
    Join Date
    Feb 2009
    Posts
    175

    Default Re: Disable "Assigned To"

    You can use the "Edit Logic Hook" module by Marnus van Niekerk. Upload through your module loader and then it will be listed in your administration screen.

    Select "Before_save" as the type and "all" as the modules. Then you type in the following:
    $bean->assigned_user_id = $current_user->id;

    and that's it. You are done. Hope this helps!

  6. #6
    andromeda9 is offline Member
    Join Date
    Mar 2009
    Posts
    9

    Default Re: Disable "Assigned To"

    Ok, where do I find "Edit Logic Hook"? I did a search on Sugar Forge and the hit described the module but did have a link to download; and, in fact, said there had been 0 downloads. Clearly, this isn't the correct module.

  7. #7
    monicaDC is offline Sugar Community Member
    Join Date
    Feb 2009
    Posts
    175

    Default Re: Disable "Assigned To"

    Sorry, it does look like it has been removed. Glad I got it when I did. I attached it for you.
    Attached Files Attached Files

  8. #8
    dtokeefe's Avatar
    dtokeefe is offline Sugar Community Member
    Join Date
    Mar 2005
    Location
    Sao Paulo, Brasil
    Posts
    671

    Default Re: Disable "Assigned To"

    David O'Keefe
    Lampada Global Services
    SugarCRM Gold Partner
    USA: +1 908 998-2278
    BR: +55 11 3237-3110
    Skype: dtokeefe
    Email: equipe@lampadaglobal.com
    www.lampadaglobal.com

    Lampada Global delivers enterprise software and offshore programming services to customers around the world.

  9. #9
    andromeda9 is offline Member
    Join Date
    Mar 2009
    Posts
    9

    Default Re: Disable "Assigned To"

    Thanks to all for the advice. BUT, I tried this with the Leeds module for the left sidebar menu and it successfully removed the option to assign a Leed to another user. However, I was a bit too successful and the user cannot create a new Leeds now.

    What to do next?

  10. #10
    dtokeefe's Avatar
    dtokeefe is offline Sugar Community Member
    Join Date
    Mar 2005
    Location
    Sao Paulo, Brasil
    Posts
    671

    Default Re: Disable "Assigned To"

    "I tried this with the Leeds module for the left sidebar menu "

    Could you explain that?

    You might want to start over, undoing what you've done so far. It's good to work on a demo system, of course. Then:

    1. Remove the assigned_user field from the EditView in Admin > Studio.

    2. Create the before_save logic hook as described above.

    David
    David O'Keefe
    Lampada Global Services
    SugarCRM Gold Partner
    USA: +1 908 998-2278
    BR: +55 11 3237-3110
    Skype: dtokeefe
    Email: equipe@lampadaglobal.com
    www.lampadaglobal.com

    Lampada Global delivers enterprise software and offshore programming services to customers around the world.

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)

Similar Threads

  1. "Assigned to:" for "Notes or Attachments"
    By iason.schizas in forum Feature Requests
    Replies: 1
    Last Post: 2010-04-28, 12:20 PM
  2. Need to disable the "vCard Button"
    By Mag in forum General Discussion
    Replies: 4
    Last Post: 2008-09-22, 02:08 PM
  3. Replies: 2
    Last Post: 2008-02-11, 05:15 AM
  4. Replies: 3
    Last Post: 2006-07-25, 06:58 PM
  5. Replies: 0
    Last Post: 2005-10-14, 01:07 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
  •