For “Assigned to” field, is it possible to disable the automatic assignment of my name to every account, contact, activities task, notes, history, etc. that I created? There are another fields that already does the same thing and these are “Date Created”, “Date Modified”, “Created By”, etc.
Automatic assignment are unnecessarily cluttering my list on the dashboard and it is a hassle going through each record to remove myself. In my opinion, “assigned to” should be left empty at time of creation and be set as manual for selective delegation.
Actually I will like to use the Assigned to but tweak its behaviour by keeping the field empty at time of record creation. Can you please provide me more details on before_save logic hook as this might be what I’m looking for? Thanks.
if you want to keep it empty in all modules you can modify this file include/EditView/EditView2.php and comment out this line
$this->focus->assigned_user_id = $current_user->id;
this is with logic hooks but it wont set in empty, it will just remove it before it gets saved to the database
$hook_version = 1;
$hook_array = Array();
$hook_array['before_save'] = Array();
$hook_array['before_save'] = Array(
//Processing index. For sorting the array.
//Label. A string value to identify the hook.
//The PHP file where your class is located.
//The class the method is in.
//The method to call.
if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
function before_save_method($bean, $event, $arguments)
$bean->assigned_user_id = false;
$bean->assigned_user_name = false;