By default, when converting a lead to account, Sugar retains the assigned user associated with the original lead record, however if the lead is initially assigned to a group user of 'Sales', it would be helpful to have the lead record that is currently being converted to change the assigned user to the current user automatically, whether it's empty or not, so we don't have to rely on users to manually ensure they change the assignee to themselves.
I have a fairly low level understanding that in order to make this happen, I would need to override view.convertlead.php by changing:
$bean->assigned_user_id = $lead->assigned_user_id;
$bean->assigned_user_id = $current_user->id;
by creating ./custom/modules/<module>/views/view.convertlead.php with the below:
class CustomViewConvertLead extends ViewConvertLead
echo 'This is my addition to the DetailView<br>';
//call parent display method
however, I'm not sure how to apply the change within this file to make it override. Any advice?
Thanks in advance.